How to add classes to privacy policy link

Created on 17 October 2024, about 1 month ago

I need to open the privacy policy page in a modal dialog. Therefor I need to add a class and additional data-attributes to the link within the main cookies dialog. Is this somehow possible?
Current markup:

<ul class="cookiesjsr-links cookiesjsr-banner--links links--row">
  <li>
    <a href="/privacy-policy" target="">Privacy policy</a>
  </li>
  <li>
    <a href="#imprint-section" target="">Imprint</a>
  </li>
</ul>

Markup I need:

<ul class="cookiesjsr-links cookiesjsr-banner--links links--row">
  <li>
    <a class="use-ajax" href="/privacy-policy" data-dialog-options="{&quot;classes&quot;:{&quot;ui-dialog&quot;:&quot;modal-content-dialog&quot;,&quot;ui-dialog-titlebar-close&quot;:&quot;btn-close ddb-close-icon ddb-bg-close-icon&quot;,&quot;ui-dialog-content&quot;:&quot;media-meta infobox-scrollbar&quot;},&quot;width&quot;:&quot;100%&quot;,&quot;minHeight&quot;:&quot;100%&quot;,&quot;maxHeight&quot;:&quot;100%&quot;}" data-dialog-type="modal" data-once="ajax">Privacy policy</a>
  </li>
  <li>
    <a href="#imprint-section" target="">Imprint</a>
  </li>
</ul>
💬 Support request
Status

Active

Version

1.2

Component

Code

Created by

🇩🇪Germany vistree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024