I was trying to add to my Odoo website a cookie bar (according to EU law). I wanted to use one from http://www.primebox.co.uk/projects/jquery-cookiebar/ but unfortunately it doesn't work. I've edited <head> section as mentioned in Installing part.
Does anyone have information how can I enable this?
Also I wanted to make similar thing but with information about old webbrowser (I saw that Odoo needs a new ones to display website properly).
Not sure if you still have this issue, since it's been a while since you asked this question. But I was facing the same problem as you are and finally found out how to implement the cookiewarning in my website.
Basically what you want to do is write a template that inherits from website.layout. Write an xpath expression here with attribute expr="//head" and position="inside", in this xpath, just place your css, js and the document.reay function.
So your template should look something like this:
Please upvote the answer if this helped you (:
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/2/14, 1:06 PM|
|Seen: 2111 times|
|Last updated: 5/11/15, 8:18 AM|