Martin,

the cms:includeTemplate tag removes the information about the active paragraph in the cms:contentNodeIterator.
This little hack makes the edit button work again:

   <jsp:scriptlet>
       Content node = Resource.getLocalContentNode();
   </jsp:scriptlet>
   <cms:includeTemplate />
   <jsp:scriptlet>
       Resource.setLocalContentNode(node);
   </jsp:scriptlet>

   <cms:editBar/>

Ralf


Martin Algesten schrieb:


I've hit something that seems rather odd.

In my template I have something like:

    <cms:contentNodeIterator
       contentNodeCollectionName="images">

      <div class="imageholder">

        <cms:editBar/>
        <cms:includeTemplate />

      </div>

    </cms:contentNodeIterator>

If I just change the order of so that the edit bar comes after the paragraph:

        <cms:includeTemplate />
        <cms:editBar/>

The "edit" button stops working and throws exception:

info.magnolia.module.admininterface.InvalidDialogHandlerException: No dialog handler for [null] found at info.magnolia.module.admininterface.DialogHandlerManager.getDialogHandler(DialogHandlerManager.java:177) at info.magnolia.module.admininterface.DialogMVCServlet.getHandler(DialogMVCServlet.java:88)
    at info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:112)

I've tried to comment the whole of my paragraph renderer out and still it doesn't work - the mere order seems to be enough to trip it.

It's almost as if includeTemplate ruins what content node data is currently set as active - is anyone else seeing this?!

Martin


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------

Reply via email to