Class ::cookieconsent::CookieConsent

::cookieconsent::CookieConsent[i] create ... \
           [ -compliance-type (default "inform") ] \
           [ -default-palette (default "popup {text #fff background #004570} button {text #000 background #f1d600}") ] \
           [ -dismiss-button-text (default "#cookie-consent.dismiss-button-text#") ] \
           [ -expiryDays:integer (default "365") ] \
           [ -layout (default "block") ] \
           [ -learn-more-link (default "https://cookiesandyou.com/") ] \
           [ -message-text (default "#cookie-consent.message#") ] \
           [ -palette (default "default") ] \
           [ -policy-link-text (default "#cookie-consent.policy-link-text#") ] \
           [ -position (default "pushdown") ] \
           [ -subsite_id:required subsite_id:required ]

Create the Class for configuring the cookie consent widget. This class requires nx from the next-scripting framework. https://next-scripting.org/xowiki/ which is automatically installed for XOTcl2 via https://openacs.org/xowiki/naviserver-openacs
Defined in packages/cookie-consent/tcl/cookie-consent-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]

Methods (to be applied on instances)

  • render_js (scripted, public)

     <instance of cookieconsent::CookieConsent[i]> render_js

    Perform the actual rendering of the cookie consent widget.

    Testcases:
    No testcase defined.