Franko Posted May 9, 2014 Share Posted May 9, 2014 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 More sharing options...
diogo Posted May 9, 2014 Share Posted May 9, 2014 Hi Franko, try this: <a href="<?=$c->url;?>"> 2 Link to comment Share on other sites More sharing options...
Franko Posted May 9, 2014 Author Share Posted May 9, 2014 Sun of a Gun, It worked! Thank you diogo. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now