OFFLINE-GmbH / oc-gdpr-plugin

October CMS plugin to make websites GDPR and ePrivacy compliant

Home Page:https://octobercms.com/plugin/offline-gdpr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Layout interfering

antischoki opened this issue · comments

I used your plugin and everything works fine except for my little layout interference problem.
The Banner works as it should:
Bildschirmfoto 2020-04-14 um 19 39 40

But the problem is the CookieManager.
I read your description and didn't get it to work because my layout is interfering with the {% component 'cookieManager' %}
It either looks like this:
Bildschirmfoto 2020-04-14 um 19 43 03
or after pasting inline <style>...</style> before component like this:
Bildschirmfoto 2020-04-14 um 19 43 32

The biggest problem is that the tabs from the cookie groups cant be switched.
Can you please provide your default.htm (Layout) you used for your documentation so i can figure out where my problem is? I don't even know if your default.htm would help me in any way but i don't know what else i could do.

Thank you
and have a nice day!

Did you enable the include_assets option?

https://github.com/OFFLINE-GmbH/oc-gdpr-plugin/blob/develop/components/ConsentManager.php#L30

The script and css will be included then.

Also make sure to include the {% styles %} and {% script %} tags in your layout. Otherwise the plugin won't know where to inject the assets.

https://octobercms.com/docs/markup/tag-styles
https://octobercms.com/docs/markup/tag-scripts