The "getPageByClass" function worked fine for me on the Old SS Release and although when I want to display content form not gridfields on other pages in SS3.
But now when i put in <% control getPageByClass(HomePage) %> the sldier displays nothing :( not on HomePage and not on any other Page.
I althoug tried to put the getSlides function into Page.php but it doesn't work too, i think because the function can't find Slides on Page.php but how can i Link this function on the Page.php to Slides on HomePage.php
5 February 2013 at 9:48pm
(Last edited: 5 February 2013 10:10pm),
thank you very much for your answer. But it doesn't work :/
Is there an other methode to get the content shown on other pages? Or is there a way to get the function working?
Ok i fixed it :)
The First Mistake was the DataObject::get instead of DataObject::get_one (Thx a lot for that)
And the second Mistake was that i tried to get the content with a function and not simply with <% loop Slides %>