Overview


1. Case: Different link per language

If you want to set a different link / URL per language, e.g. for EN than for DE, you can easily do this using the Translate Button:

  1. In the Admin Interface: go to Content → First Layer → Imprint & Privacy URL.

  2. Use the respective "Edit and Translate" field to store a separate URL for each language.


2. Case: Different links within one language

If you want to store different links / URLs for a language like e.g. DE (Swiss page / German page / Austrian page), an event listener must be built into the code:

We provide two custom events for the Imprint and Privacy Policy URL fields in the Admin Interface. Please enter:

This value will be used in the next step, so please keep it in mind.

You can add these anchors in Content > First Layer. With these custom events, you can define a Window Event Listener to do an action that you want. An event listener (see below) must be added in the code, which listens for a click on the privacy policy link (first layer) and then triggers the desired behavior.

For example, you can create an event to redirect to your privacy policy page:

window.addEventListener("onUcPrivacyClick", function(e) {
  console.log("Insert here your logic for Privacy Policy")
})

window.addEventListener("onUcImprintClick", function(e){
  console.log("Insert here your logic for Imprint")
}) 

This is only possible for CMP V2. Contact our Service Desk to get V2 activated.


Do you need further help?

How can I get help with technical questions?