Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Merge content of multiple page on homepage


Go to End


1317 Views

Avatar
s_a_m_y

Community Member, 31 Posts

21 March 2014 at 4:42pm

Hi All,

I'm not sure this is the right category to post in, but I am hoping for your help.

I have a new project which is supposed to have a parallax-homepage, that combines the content of what usually would be separate pages. I can see to solve this by just adding the required fields of the "pages" in the backend and structuring it with tabs. But they also want to teaser their last projects there. the projects are stored with the DataObjectAsPage module. It's a great tool and has always served me well. I am just not very strong when it comes to accessing the database outside a written path. Could anyone point me in the right direction on how I could access the content of the projects from the homepage class? I guess I have to do this in the php-file and there is no way to do this only in the template, correct?

Sorry for sounding like a total newbie. It's just a first for me. Thanks for any suggestions.
Cheers
Samy