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.

Customising the CMS



39 Posts   8003 Views


14 April 2010 at 5:37pm Community Member, 901 Posts


That's odd. I can confirm that it works in popups, both locally and on live environments.
I guess it's a good idea to try to narrow this down.
Do you run the same version of SilverStripe in both environments?
Do you get any errors in Firebug when you try to open a colorpicker on the live server?
Any files missing (look at the "Net" tab in Firebug)?
Does the same issue occur in every browser?


15 April 2010 at 5:53am Community Member, 19 Posts

Hi Banal,

Yeah I've found it odd too. In answer to your questions yes I am running the same version of SS in both enviroments and it's not working in any browsers I have tested it in.

Thanks for pointing me to the Net tab in firebug - I am actually getting 3 errors coming up - all of which seem to suggest that jquery is not being loaded.

the 3 errors are:

jQuery is not defined
[Break on this error] })(jQuery); dataob...9901105 (line 46)

jQuery is not defined
[Break on this error] })(jQuery) colorp...9900943 (line 450)

jQuery is not defined
[Break on this error] $j = jQuery.noConflict(); colorf...9900943 (line 1)

The question now is why? (I say rubbing my chin)


15 April 2010 at 8:27am Community Member, 901 Posts

Hm that error can occur if jQuery is being included multiple times.. but that would produce the same error on the local installation as well. Maybe try to re-upload the jsparty directory and make sure it has the appropriate permissions (files must be globally readable)


15 April 2010 at 8:41am Community Member, 19 Posts

Hi Banal

Yeah tried re-uploading the jsparty directory earlier but didn't really think it was going to be that as the colour picker is working in the CMS (not within popup). Just changed the readable permissions for jsparty to fully readable (777) and still no joy! As you can see in the attachments the local enviroment is making 4 requests while the live enviroment is only making 3. The missing request happens to be the jquery.js

Thanks for your help by the way :)

Attached Files

15 April 2010 at 8:53am Community Member, 901 Posts

Hm. Never saw anything like that. So there's not even an attempt to load jQuery? Did you empty the browser cache before monitoring the Net-Tab?
Try to delete the base.js, cmsmain.js and leftandmain.js files in the assets folder too. They are automatically generated, so deleting them is not a problem. If that doesn't help, try a flush on the admin.. eg.

Other than that, there's not much advise I can give. I suspect it could be the auto-generated files though.


15 April 2010 at 9:12am Community Member, 19 Posts

nope sorry none of those worked. God Knows what's causing it.

Although I've just found a pretty ugly hack to get it working. Thanks to all your help!

I've just added : <script type="text/javascript" src="mysite/javascript/lib/jquery.js"></script>
into /dataobject_manager/templates/

It's messy - but it works for now!

Thanks once again!


5 July 2011 at 12:37am Community Member, 15 Posts

Hi there,

I've been having a bit of trouble with the ColorPicker Module. Firstly though; it's a great piece of code that works really well.

However, I can't get it to display on my templates. The code I'm using is the following:

class ArticlePage extends Page {
static $db = array(
   'Date' => 'Date',
   'Author' => 'Text',
   'BarColour' => 'Text'
   $fields->addFieldToTab('Root.Content.Main', new ColorField('BarColour', 'Bar Colour'));

and the template:

<div class="primary" role="main">

   <div class="content">

         <div class="article-content">

            <p>BG: $BarColour</p>
         </div><!-- /.article-content -->
   </div><!-- /.content -->
</div><!-- /.primary -->

I'm sure it's something simple! But please help if you can.