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

Issues with TestimonialPage.ss & ResourcePage.ss


Go to End


11 Posts   2526 Views

Avatar
Roony

Community Member, 14 Posts

27 January 2010 at 6:07pm

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

28 January 2010 at 3:00am

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

28 January 2010 at 3:03am

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.

Go to Top