Jump to content

How do I link to a child page?


Franko
 Share

Recommended Posts

I am new to processwire and php.  This is basically a list page that I want to be able to display an image and description from a child page on and then link to that child page. What is the code to link to the child page? I'm sure this is very basic, but cant figure it out. Help would be appreciated. 

<? foreach($page->children as $c): ?>
 
<li><img src="<?=$c->listImage->url;?> " alt="<?=$c->listImage->description;?>" width="167" height="167"> <?=$c->listImage->description;?> <a href="LINK TO CHILD PAGE">View more</a></li>
 
<? endforeach; ?>
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...