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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Requirements::customCSS is not working at all for me

Go to End

2 Posts   2295 Views


Community Member, 29 Posts

30 January 2009 at 8:20am

I need to access the database in order to pull a CSS background image on a page in my site. I decided to use an inline style to access this background image.

However whenever I place this in my code, using the documentation as a template for the heredoc format:

function init() {
	#minisite-header {
		background: url($ContentImage.URL) no-repeat;


I get a blank PHP screen (which looks like a parse error, maybe, but I can't turn on verbose error reporting in PHP)

So thinking that I messed up the heredoc format somewhere, I try just this simple function:


And I still get nothing.

The similar function:


Works fine. What's going on?


Forum Moderator, 801 Posts

9 February 2009 at 8:06am

Duh, fixed in ;) Thanks for noticing...