ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cookie consent module docs needs adjusting

November 06, 2012 7:01am

Subscribe [1]
  • #1 / Nov 06, 2012 7:01am

    Rick Lecoat

    128 posts

    I’m just implementing my Cookie Consent stuff, and I realised that the documentation for the module could do with some tweaking, specifically for the {cookies_allowed_link} tag and the corresponding tags to revoke cookie acceptance. The documentation gives the following example template code:

    {exp:cookie_consent:message}
     {if cookies_allowed == 'yes'}
      Thanks for allowing cookies!
    
      Delete cookies: {clear_ee_cookies_link}
     {if:else}
      Please allow cookies:
    
      {cookies_allowed_link}
     {/if}
    {/exp:cookie_consent:message}

    This code makes it seem as if the {cookies_allowed_link} tag creates the HTML for the link, when in fact what it outputs is a URL. The code would perhaps better be given as:

    {exp:cookie_consent:message}
     {if cookies_allowed == 'yes'}
      Thanks for allowing cookies!
    
      Delete cookies: <a href="http://{clear_ee_cookies_link}">Revoke acceptance</a>
     {if:else}
      Please allow cookies:
    
      <a href="http://{cookies_allowed_link}">Accept cookies</a>
     {/if}
    {/exp:cookie_consent:message}

    Hope this helps.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases