3439 Posts in 1028 Topics by 869 members
|Go to End|
13 April 2010 at 10:35pm
I am using DataObject for a News area of the site (its a better solution for the design than the blog) - so I have NewsItem.php (that extends the DataObject), NewsPage.php that $has_many NewsItems, and NewsPage.ss that calls all of the news items through <% control NewsItems %>. Each NewsItem has a 'Title' and 'Description' defined.
This all works great.
What I now want to do is pull the latest NewsItem from the above DataObject into Page.php.
Any help would be great
13 April 2010 at 10:58pm
Its ok, I have resolved this by using <% control.Last %>. Easy when you know how.
|Go to Top|