Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » help need to explain...

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 420 Views
  • moonchild100
    Avatar
    Community Member
    18 Posts

    help need to explain... Link to this post

    Context:
    i have a VideoPage type, and i need another pagetype called "FrontVideoPage" type. all the fields are the same for those two page types, only that FrontVideoPage type needs an extra field "Front Page Title".

    Question:

    i tried to copy the VideoPage.php to FrontVideoPage.php (basically the video control part) and then add some code for "Front Page Title" field, however, in this case, FrontVideoPage returned me "sever error", also in the video tab, it shows all it's children's video and when you want to delete or edit the video, the pop up window for DOM shows "server error"again.

    Now my solution is, i wrote " FrontVideoPage extend VideoPage" other than "extend Page" an only add some line for "Front Page Title" field, my FrontVideoPage displays well , and the video tab only shows its own video, no children's video.

    Though it works great, i want to know what's in there that cause the problem for my situation..

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: help need to explain... Link to this post

    Can you get your site into dev mode so we can see the error? A generic "server error" isn't very much to go on.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

    420 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.