Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:cookie_consent
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
configuration:cookie_consent [2022/09/12 15:09] – Struct data changed emaijala | configuration:cookie_consent [2022/09/30 09:26] (current) – [JavaScript Events] emaijala | ||
---|---|---|---|
Line 11: | Line 11: | ||
Cookie categories and further configuration is in CookieConsent.yaml. See the comments in the file and the sample configurations below for further information. | Cookie categories and further configuration is in CookieConsent.yaml. See the comments in the file and the sample configurations below for further information. | ||
- | Note that if enabled categories or cookies in the categories are changed, the consentRevision setting in config.ini | + | Note that if enabled categories or cookies in the categories are changed, the **consentRevision setting in config.ini |
+ | Default translation texts include a link to the [[configuration: | ||
+ | |||
===== Language Translations ===== | ===== Language Translations ===== | ||
Line 44: | Line 46: | ||
^ Event ^ Description | ^ Event ^ Description | ||
- | | cookie-consent-done | + | | vf-cookie-consent-first-done |
- | | cookie-consent-change | + | | vf-cookie-consent-done |
- | | cookie-consent-initialized | + | | vf-cookie-consent-changed |
+ | | vf-cookie-consent-initialized | ||
===== Sample Configurations ===== | ===== Sample Configurations ===== | ||
Line 60: | Line 63: | ||
:!: At least expiration times may differ depending on region. | :!: At least expiration times may differ depending on region. | ||
- | The following configuration | + | The following |
- | + | ||
- | < | + | |
- | <div class=" | + | |
- | </ | + | |
- | + | ||
- | You can also check if iframe manager is active: | + | |
+ | Template example: | ||
<code php> | <code php> | ||
- | | + | <? |
- | <div style=" | + | <?php if (!$cookieConsent-> |
- | <?php else: ?> | + | <iframe width=" |
- | <iframe width=" | + | <?php else: ?> |
- | <?php endif; ?> | + | |
+ | <p> | ||
+ | The video cannot be displayed due to missing cookie consent. | ||
+ | Check <a href="#" | ||
+ | </ | ||
+ | <p> | ||
+ | You can also view the video on <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | <?php endif; ?> | ||
</ | </ | ||
Line 85: | Line 92: | ||
DefaultEnabled: | DefaultEnabled: | ||
Essential: false | Essential: false | ||
- | ControlIframeServices: | ||
- | - youtube | ||
Cookies: | Cookies: | ||
- Name: yt-player-bandwidth | - Name: yt-player-bandwidth | ||
Line 123: | Line 128: | ||
AutoClearCookies: | AutoClearCookies: | ||
- Name: '/ | - Name: '/ | ||
- | IframeServices: | ||
- | youtube: | ||
- | EmbedUrl: ' | ||
- | # | ||
- | IframeAllow: | ||
- | Description: | ||
- | AllowOnceText: | ||
- | AllowAlwaysText: | ||
- | </ | ||
- | |||
- | ==== Iframe Manager ==== | ||
- | |||
- | If you use iframe manager (like in the YouTube video example above), add this to the '' | ||
- | |||
- | <code yaml> | ||
- | - Name: ' | ||
- | Domain: ' | ||
- | Description: | ||
- | Expiration: ' | ||
- | ExpirationUnit: | ||
</ | </ | ||
configuration/cookie_consent.1662995391.txt.gz · Last modified: 2022/09/12 15:09 by emaijala