Custom Events
We provide two custom events for the Imprint and Privacy Policy URL fields in the Admin Interface:
- onUcImprintClick for the Imprint URL field
- onUcPrivacyClick for the Privacy Policy URL field.
On your Admin Interface, under Content > First Layer > Links it is possible to add the custom events
- Under Legal Notice URL use
#onUcImprintClick
- Under Privacy Policy URL use
#onUcPrivacyClick
With these custom events, you can define a Window Event Listener to do a action that you want, for example, you can create an event to redirect to your privacy policy page.
<script>
window.addEventListener('onUcImprintClick', function (e) {
// Insert here your logic for Imprint
console.log("Custom Imprint Link Clicked!!")
});
window.addEventListener('onUcPrivacyClick', function (e) {
// Insert here your logic for Privacy Policy
console.log("Custom Privacy Policy Link Clicked!!")
});
</script>