7913 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 1042 Views |
-
Re: Issues with TestimonialPage.ss & ResourcePage.ss

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
-
Re: Issues with TestimonialPage.ss & ResourcePage.ss

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.
-
Re: Issues with TestimonialPage.ss & ResourcePage.ss

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.
| 1042 Views | ||
| Go to Top |

