Hello
I'm finally moving up to SS3 from 2.4! My previous site used DOM for a list of quotations, and I then used the following code in page.php to display a random quotation on every page.
public function RandomQuotes()
{
$limit = 1;
return DataObject::get("Quote",null,"RAND()",null,$limit);
}
I've got GridField working. But I can't work out how to modify the above code to give me the same result as previously.
All help appreciated. Thanks :)