21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 727 Views |
-
Displaying only the first 3 Children

1 June 2010 at 6:06pm Last edited: 1 June 2010 6:06pm
I want the ArticleHolder.ss (as per the tutorial) to only display the first 3 Children.
Any ideas anyone? -
Re: Displaying only the first 3 Children

3 June 2010 at 8:01pm
You need to add your own function to do this. The following 'might' work:
function FewChildren($limit) {
$littlechildren = DataObject::get("SiteTree", "ParentID = $this->ID", "", null, $limit);
return $littlechildren;
}
| 727 Views | ||
|
Page:
1
|
Go to Top |


