Jump to content

Basic navigation by templates


luckybusted
 Share

Recommended Posts

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?

Link to comment
Share on other sites

  • 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
 Share

×
×
  • Create New...