Jump to content

Recommended Posts

Posted

Hey Guys I got a very basic and hopefully simple question about Templates.

I need to display all Pages with a special template (e.g. "location_category") in my Navigation.

My solution now:

$location_cat = $template->get("location_category");

foreach($location_cat as $lc) {

echo"<li><a href="{$li->url}">{$lc->title}</a></li>";

}

but this doesn't work.

Anyone a solution?

Posted

Me again,

but what if I want to find two ore three different templates? Something like: 

$location_cat = $pages->find('template=location_category, spot_category');

?

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...