Jump to:

7939 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Issues with TestimonialPage.ss & ResourcePage.ss

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 1327 Views
  • Roony
    Avatar
    Community Member
    14 Posts

    Re: Issues with TestimonialPage.ss & ResourcePage.ss Link to this post

    Ok so I sorted out that issue myself, I had specified two doctypes in my page.ss

    But since using the code the page shows up and the items are displayed, but I can no longer get into the page through the CMS. I get an empty box pop up with a button on it with no text and then it says in the bottom left Error

    Not sure why this is happening

  • UncleCheese
    Avatar
    4085 Posts

    Re: Issues with TestimonialPage.ss & ResourcePage.ss Link to this post

    The controller goes in the same file as the model.

    TestimonialPage.php

    class TestimonialPage extends Page {}

    class TestimonialPage_Controller extends Page_Controller {}

    This is all very fundamental stuff covered in the first tutorial in the docs. I would recommend reading up on that.

    As far as the XML parsing error, I would avoid using an XML doctype. They're nothing but a headache. Stick to XHTML 1.1 transitional.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Issues with TestimonialPage.ss & ResourcePage.ss Link to this post

    As for that empty error message, I'll say one more time, you need to turn on error reporting. You're going to drive yourself crazy trying to debug without error reporting turned on.

    1327 Views
Page: 1 2
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.