Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout interfering #67

Open
antischoki opened this issue Apr 14, 2020 · 1 comment
Open

Layout interfering #67

antischoki opened this issue Apr 14, 2020 · 1 comment

Comments

@antischoki
Copy link

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!

@tobias-kuendig
Copy link
Member

tobias-kuendig commented Apr 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants