Jump to content

title children not visible


tooth-paste
 Share

Recommended Posts

I really need some help on this one. I run into a total mystery. I've been working on it all day and tried everything.

The problem is that I can NOT SHOW ANY TITLES of CHILDREN. Titles of the root tree show up fine. Also when I replace title with url, all url's of children are visible. I'am testing with this simple piece of code.

<nav>
<?php
	$child_pages = $pages->get("/webshop/")->children;
	foreach ($child_pages as $child) {
		echo '<a href="'. $child->url .'">'. $child->title .'</a><br />';
	}
?>
</nav>

  

Link to comment
Share on other sites

do those pages have a title field? maybe you removed it? in the pagetree you wouldn't realize it because it would show the page name.

try a tracy console like
$child = $pages->get(_your_childpage_id_);
d($child->id);
d($child->title);

  • Like 5
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...