[opencms-dev] [DKIM]  Detect GWT / ADE is loaded ?
    Hein van der Kallen 
    hvanderkallen at xs4all.nl
       
    Mon Jan  2 17:26:06 CET 2023
    
    
  
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 <opencms-dev-bounces at opencms.org> Namens Sandrine Prousteau via opencms-dev
Verzonden: dinsdag 20 december 2022 10:46
Aan: The OpenCms mailing list <opencms-dev at opencms.org>
CC: Sandrine Prousteau <s.prousteau at eurelis.com>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20230102/bae4ead8/attachment.htm>
    
    
More information about the opencms-dev
mailing list