CMS Made Simple and Cookie Control

713 views
Skip to first unread message

j6891

unread,
Jun 19, 2012, 4:09:47 AM6/19/12
to cookie...@googlegroups.com
Hi there,

Love the work you have done on the cookie control and was excited to see the new version released!

The previous version of cookie control worked no problem with CMSMS and
I know you can't possibly support every single cms system out there but just wondered if you knew what the issue would be with my situation here...

CMS Made Simple contains the following tag in the header:

<base href="http://www.mywebsite.co.uk/" />

With this in place, when using the cookie control (implicit), instead of the # being placed at the end of the url e.g. http://www.mywebsite.co.uk/page.html#, it gets redirected back to the home page
http://www.mywebsite.co.uk/# and therefore doesn't work.

If I remove the base href tag above, cookie control works, however this is not an option as it then breaks paths to images and js files.

Have you guys come across anything like this before and if not would you be able to point me in the direction of something which may help?

Thank you once again.

j6891

unread,
Jun 19, 2012, 9:48:23 AM6/19/12
to cookie...@googlegroups.com
Have taken a look into this further and it seems that if you changed the <a href="#">... into a button within the javascript file (retaining all id's etc) then it solves this problem. The cookie control continues to work and so does the base href within cmsms.

The only issue with this is that if you were to upgrade cookie control in the future at any time, you may need to repeat this step again.

I hope this is helpful to anyone else using CMS Made Simple.

johanna

unread,
Jun 21, 2012, 5:04:56 AM6/21/12
to cookie...@googlegroups.com
Hi j6891,
Can you maybe explain which steps to take to implement this in CMSMS?
There is a thread about it here: http://forum.cmsmadesimple.org/viewtopic.php?t=59524
I have no clue how to do this and very interested in it and there are others that want are interested in this too.
Thanks.

Johanna

Mark Steven

unread,
Jun 21, 2012, 8:27:12 AM6/21/12
to cookie...@googlegroups.com
Hi Johanna,

Afraid I have no experience of CMS Made Simple but it may be straightforward.

If CMSMS has the concept of a footer include or page template, then that's the place to insert the Cookie Control code snippet, as generated by the configurator.

Upload the Cookie Control .js file. To your site - assuming there's a way of uploading scripts!

Update the path to your script in the page template and you should be done.

If you need to (implicit model or explicit model) you can tweak other scripts to interact with Cookie Control. This however, may take some hacking around with other modules and templates (again, if such a thing exists!)

Sorry I can't be more specific about CMSMS.

All the best,

Mark

johanna

unread,
Jun 21, 2012, 9:21:01 AM6/21/12
to cookie...@googlegroups.com
Thanks Mark,
That is exactly how I did it, but that doesn't work.
There is a whole thread about the cookie law on the CMSMS forum and I hope somebody there can help us or maybe j6891, since he already implemented it with success.
Great script! Good luck for the future!

Johanna

johanna

unread,
Jun 22, 2012, 8:53:24 AM6/22/12
to cookie...@googlegroups.com
Hi everybody,
For those interested in implementing the Cookie Control script in CMSMS, I have found the solution.
Open the Cookie Control js and find the <a id="cctoggle" href="#"></a> and change this to a button. <button id="cctoggle" href="#"></button>.
Then upload it to your CMSMS folder on your server and include the script just before the </body> tag (with the literal tags of course) in your template. Be sure to create a Privacy Policy page and change the url in the script to that page.
That's all. It works perfect.
Big thanks to Jodie(j6891)!

Johanna :)

Mark Steven

unread,
Jun 25, 2012, 4:35:50 AM6/25/12
to cookie...@googlegroups.com
Hey Johanna - great tip... thanks for helping out!
Reply all
Reply to author
Forward
0 new messages