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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Video and ImageGallery in other page types


Reply

436 Views

Avatar
Mark1

20 July 2011 at 2:04am (Last edited: 20 July 2011 2:07am), Community Member, 6 Posts

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: [url]http://www.silverstripe.org/dataobjectmanager-module-forum/show/10839?start=24#post305229[/url]
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 ?