23453 Posts in 18902 Topics by 2877 members
|Go to End|
2 February 2010 at 12:43am
Can somebody explain a simple way how to access an individual children (Article Title/Body) without using
the control childrenOf command?
The disadvantage here is that you have to define an additional layer within the site structure...
Thanks for your help
2 February 2010 at 11:49am
Sorry perhaps not really understanding the question. If you want a specific page on the site you can use <% control Page(page-url) %> to get a single page regardless of what the site structure is.
3 February 2010 at 12:27am
is it also possible to access the children by a parameter "order",
meaning the first, second, third etc.... in order of appearance within the cms interface?
9 February 2010 at 6:08pm
you can create a function to do that.
$children = DataObject::get("SiteTree","ParentID = '$this->ID'","Date DESC");
if($children) return $children;
|Go to Top|