Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Cookiepolicy plugin

Started by Muut Archive 11 years ago · 5 replies · 282 views
11 years ago

Sorry to not being able to get to the point by myself

For cookie policy plugin:
1.
I copied cookiepolicy.yaml from user/plugin/cookiepolicy to user/themes/mytheme
but
it is not overwritten when displayed:
should I modify it in user/plugin/cookiepolicy then?

2.
How can I modify redaction of cookiepolicy.yaml to display bar in the suitable current language ?

11 years ago

The plugin config must be put in user/config/plugins/cookiepolicy.yaml, not under themes

11 years ago

ok, thank you, understood; I just erased the wrong one in user/themes/mytheme.

2
How can I set cookiepolicy.yaml to display bar in the suitable language?
I would like to make a fr, ja, and en versions.

here is the code of cookiepolicy.yaml:

YAML

enabled: true
type: bar
message: We use cookies to help us give you the best experience when using our website. Unless you change your settings, we'll assume that you agree for us to do this. However, you can change your settings at any time according with your browser.
btn_privacy: 'Learn more'
btn_close: 'Close'
url: 'http://example.com/privacy-url'
---
11 years ago

thank for the answer, I'll make an issue...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago