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

Issues with TestimonialPage.ss & ResourcePage.ss


Go to End
Reply


11 Posts   1443 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, 4096 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, 4096 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