19 December 2011 at 4:09am
First I want to say sorry for my bad English...
I'm using silverstripe for a few days, and I like it.
I'm using the pixelgreen theme.
I'd like to show the last edited pages in the sidebar.
I have found in my database that I need to use the SiteTree table.
My php knowledge is not so good. I am able to make contact with my database, and select the right table.
I'm searching for a script that gets the last 5 edits from my table, and that organizes these 5 edits.
20 December 2011 at 2:25am
This post may help...
In silverstripe a DataObjectSet is parsable easily on the template and instead of using the mysql_connect functions this provides a slightly higher level to getting the data and formatting it. I am sure there is a way to do this using entriely DataObject::Get - but I'll just offer this to help you now.