Re: [DKIM] Detect GWT / ADE is loaded ?
Hein van der Kallen via opencms-dev <[email protected]>
| Newsgroups | gmane.comp.cms.opencms.devel |
|---|---|
| Message-ID | <[email protected]> |
Sandrine
To test whether to support ADE or not I use in my template (in Opencms 13) :
<c:choose>
<c:when test="${cms.page.getClass().getName() == 'org.opencms.xml.containerpage.CmsContainerPageBean'}">
<cms:enable-ade />
<mercury:load-plugins group="css" />
<mercury:load-plugins group="js-async" />
<mercury:load-plugins group="js-defer" />
<mercury:load-plugins group="template-head-includes" type="jsp-nocache" />
</c:when>
<c:otherwise>
<cms:editable />
</c:otherwise>
</c:choose>
I don’t understand your problem, but
may be the same test will help you.
Or did you just want to know whether the edit toolbar is loaded ?
For instance in opencms 10 I had in my template
<body>
<c:if test="${cms.isEditMode}">
<!--=== Placeholder for OpenCms toolbar in edit mode ===-->
<div id="toolbar-placeholder" style="height:52px ;"></div>
</c:if>
…
Hein van der Kallen
Van: opencms-dev <[email protected]> Namens Sandrine Prousteau via opencms-dev
Verzonden: dinsdag 20 december 2022 10:46
Aan: The OpenCms mailing list <[email protected]>
CC: Sandrine Prousteau <[email protected]>
Onderwerp: [DKIM] [opencms-dev] Detect GWT / ADE is loaded ?
Hi!
Is there a way to properly detect ADE tools are loaded? I'd like to run a small script to adapt the page with the top toolbar existence. Is there some callback or some context variable to listen for?
I'm currently working on OpenCms 13.
Thanks.
Sandrine.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
https://lists.opencms.org/mailman/listinfo/opencms-dev