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

CSS Links not being added


6 Posts   961 Views


14 October 2010 at 5:10am Community Member, 81 Posts

I am using a DOM Table to manage the testimonials on my client's website.

I am having a problem with the CSS for the table not loading unless I refresh the CMS while on that page.

When I click on the Testimonial page and then the Testimonials tab I see this:

I need to press the refresh button in order for it to display correctly:

Looking at the source code of the page before and after the refresh, I notice that the following lines appear after the refresh, but not before.

<link rel="stylesheet" type="text/css" href="" />
<link rel="stylesheet" type="text/css" href="" />
<link rel="stylesheet" type="text/css" href="" />
<link rel="stylesheet" type="text/css" href="" />

So for some reason, unless the CMS is loaded at the same time as the page with the DOM table on it, the CSS for the table is not inserted.

I'm using SilverStripe 2.4.2.

Any ideas why this is happening?



14 October 2010 at 5:33am 4085 Posts

Wow, I have no idea. I've never experienced this problem. You have the directory correctly named "dataobject_manager"?

SilverStripe tips, tutorials, screencasts and more:


14 October 2010 at 5:58am Community Member, 81 Posts

Yep, the directory is correctly named. I can't see anything different in my code that should be interfering. Any ideas!?


20 October 2010 at 11:25am Community Member, 46 Posts

I had this problem... Thanks UncleCheese, renaming to "dataobject_manager" fixed it.



20 October 2010 at 10:35pm Community Member, 81 Posts

My directory is definitely called "dataobject_manager" (copied and pasted that), but I am still having this problem. I expect that having the wrong dir name just causes the CSS files not to be found, and therefore the styles do not display.

However, as per my initial post, the problem I am seeing is the CSS files aren't even linked to in the HTML until the page is refreshed.


19 March 2011 at 3:12am Community Member, 81 Posts

After several hours of trial and error, I've finally found out what was causing this issue.

One of my other controller php files, which was completely unrelated to the Testimonials, had 2 empty lines at the bottom of the file! I removed these and now the DOM table loads perfectly everytime!