Jump to content

[solved] navigation from pages with diffrent templates


buster808
 Share

Recommended Posts

Hi, I have a list of pages with diffrent templates.

Work-
     Web
     design
     prototype
     video
     interactive

 I want to create a navigation that uses one of the fields from each template so when Work is selected they show.

I've been able to do this but just for one template.

<?php $workposts = $page->children("template=webpages");?>

<?php foreach ($workposts as $post):

echo "
<a href='$post->url' style='text-decoration:none'>$post->work_cat</a>";
 
?>

Do I have to link the pages somehow.

Thanks for any help

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...