Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6364

Add a skin variable to support cookies acceptation banner

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.7.2, 3.8
    • None
    • None
    • None

        [CMS-6364] Add a skin variable to support cookies acceptation banner

        Loïc Bouchet added a comment -

        Patch

        Loïc Bouchet added a comment - Patch

        In Cookies legislation feature (CMS-6355), a banner to accept cookies is displayed if a site parameter "Enable cookie consent banner" (cookie-banner) is checked.
        But the banner should also depends on skin in use..

        So the following changes have to be made:

        • The site parameter should be renamed:
          • id = "force-accept-cookies"
          • label = "Always accept cookie"
          • description = "Check this box if you want to force the use of cookies to collect anonymous visitor statistics without asking permission to the site visitor. Note that asking for user permission could be a legal obligation, depending on the country.
          • default value = false
          • mandatory = false
        • In wrapper.xsl of plugin web, add a XSL variable "support-cookies-banner", default equals to true
          <xsl:variable name="support-cookies-banner">true</xsl:variable>
          

          The banner is display only if site parameter force-accept-cookies is equals to false AND support-cookies-banner is equals to true.
          The variable "support-cookies-banner" could be overriden in a skin.

        This is should be backported to 3.7 version, BUT be careful, XSL variable "support-cookies-banner" must be equals to false by default in 3.7 version (in order to be iso-function between minor version).

        Laurence Aumeunier added a comment - In Cookies legislation feature ( CMS-6355 ), a banner to accept cookies is displayed if a site parameter "Enable cookie consent banner" (cookie-banner) is checked. But the banner should also depends on skin in use.. So the following changes have to be made: The site parameter should be renamed: id = "force-accept-cookies" label = "Always accept cookie" description = "Check this box if you want to force the use of cookies to collect anonymous visitor statistics without asking permission to the site visitor. Note that asking for user permission could be a legal obligation, depending on the country. default value = false mandatory = false In wrapper.xsl of plugin web, add a XSL variable "support-cookies-banner", default equals to true < xsl:variable name= "support-cookies-banner" > true </ xsl:variable > The banner is display only if site parameter force-accept-cookies is equals to false AND support-cookies-banner is equals to true. The variable "support-cookies-banner" could be overriden in a skin. This is should be backported to 3.7 version, BUT be careful, XSL variable "support-cookies-banner" must be equals to false by default in 3.7 version (in order to be iso-function between minor version).

          ngavalda Nicolas Gavalda (Inactive)
          laurence Laurence Aumeunier
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: