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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Video and ImageGallery in other page types


Go to End


973 Views

Avatar
Mark1

Community Member, 6 Posts

20 July 2011 at 2:04am

Edited: 20/07/2011 2:07am

Hi ! Could anyone point me out, how to get Video and ImageGallery (or any other module) in Page type?
Every website simply needs these functions nowadays...
UncleCheese suggested to move the code to Page class, source here: http://www.silverstripe.org/dataobjectmanager-module-forum/show/10839?start=24#post305229
I tried to move, but had no luck.

What I did is moving the contents of Model and Controller in PHP-file of the Gallery/Video to the respective M. and C. of the Page.php. Then correcting the View (page.ss).

What I did wrong ?