AI OnAI Off
Add the following in your module.config in the root of the project (create it if it doesn't exist):
<?xml version="1.0" encoding="utf-8"?> <module> <clientResources> <add name="epi-cms.widgets.base" path="~/Path/To/Script.js" resourceType="Script" /> </clientResources> </module>
Btw, if you need to inject CSS you can add another clientResource-element and set resourceType="Style".
I found out that we can use navigation instead epi-cms.widgets.base, that will add the script to both Edit mode and Admin mode
<add name="navigation" path="~/ClientResources/Scripts/xyz.js" resourceType="Script"/>
Hi, I need to add a litle custom CSS into the edit view to hide the nav/toolbar panes when I have a certain querysting parameter. Ideally I would do this with JS, but I can't find a way to inject a custom JS script into the main CMS page (Cms#context=epi.cms.contentdata:///..).
Does anyone know if this is possible?
Thanks,
Paul.