I have a special case where I need to edit a paragraph that is not stored under 
the page in the JCR. Also, the editBar is not nested inside a 
contentNodeIterator because I only  need to edit one paragraph. I was 
struggling because there is no path attribute to indicate where the paragraph 
is stored in the JCR. I solved my problem by adding a path attribute in 
EditBar.java.


[code]
if (this.path != null) {
   path = this.path;
} else if (localContentNode != null) { 
[/code]

This code goes at line 233 in this version 
http://svn.magnolia-cms.com/view/community/magnolia/trunk/magnolia-taglib-cms/src/main/java/info/magnolia/cms/taglibs/EditBar.java?revision=44899&sortby=log&pathrev=45982

Is it the only way to do it or I'm missing something?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=dd210ce8-b9dd-4284-81f4-c206eaedad58


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to