I'm trying to leverage Bootstrap 3 to build our website, however I think the bootstrap.js that I've included in the master page layout, interferes with the bootstrap that the kentico cmsdesk is using. This prevents the editor from functioning properly. How can I tell Kentico to only load my bootstrap.js from the master page layout if I'm not in editor mode?
Hopefully I explained that well, let me know if you need any more clarification.
How are you loading the js file? Are you using the JavaScript webpart? If not, I'd highly suggest it as it will handle that for you.
You can use this macro PortalContext.ViewMode != "Design" or PortalContext.ViewMode == "LiveSite" in the visible property of the JavaScript web part.
PortalContext.ViewMode != "Design"
PortalContext.ViewMode == "LiveSite"
@Yehuda, in code behind, the JavaScript web part already does this so no need to handle it again.
Thanks Brenden, that works perfectly.
Please, sign in to be able to submit a new answer.