Hi,
I am pleased to see the new Custom Code options however some improvement is still needed. Currently any Custom Code is only possible across the whole application and it would be useful to add code to specific pages and in specific containers.
I previously requested this and an issue was created here.
As you can include any javascript, you can also add the missing DOM elements to a page if you want. You also access the current page path to match only certain pages for instance. However we’ll add a way to specify an id/class to an existing element to better target these elements. This way you should be able to target the element you want.
However it can be dangerous to modify the DOM of the elements as it could conflict with the technology we are using to generate it (vuejs). May be it’s safer to include your specific code using the Iframe element and using the messaging system (using custom js) or the IFRame path to interact with the content in this IFrame, what do you think?
Thanks for your reply. I was just reading that it is possible for the Javascript to insert the new DOM and to select an existing DOM to place either before or after. This is useful.
It is great to see the progress however the current setup only allows JS sitewide and in many cases it would only be used on individual pages. I think it would also be better and perhaps less dangerous to be able to be able to add it to a specific container on the page, without using an iframe.