Jump to content

changing output of summary of children in a custom foot.inc


Mont
 Share

Recommended Posts

I have a events_footer.inc  that outputs children pages by the id number.  The id number is from a pagefield id representing the event.  I would like to replace with this information from the child page:

$page->event->last()->title;

my events_footer.inc has this code:

if($page->numChildren) {

			echo "<ul class='nav'>";

			foreach($page->children as $child) {
				echo "<li><p><a href='{$child->url}'>{$child->event->last()->title}</a><br />
<span class='summary'>{$child->summary}</span></p></li>"; 
			}
			echo "</ul>";
			}

Edit:

SOLVED!  I am an idiot. Code was at the bottom of my template page not my footer.inc.

Link to comment
Share on other sites

  • 3 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...