Hi Carla,

I'm not sure what the editButton is supposed to do,
but you can either move the editButton tag to your 
my-paragraph.jsp to be rendered every time the paragraph
is added to template or you can leave the button in
the template and use something like the following 
if you need to render the values


<cms:editButton label="Edit Button" dialog="my-dialog"
contentNodeName="myContent"
contentNodeCollectionName="myNewCollection"/>

<cms:setNode var="anyNode" contentNodeName="myContent"/>
Title: ${anyNode.textTitle}
Text: ${anyNode.textBlock}

<cms:contentNodeIterator contentNodeCollectionName="myNewCollection">
   <cms:includeTemplate/>
</cms:contentNodeIterator>

or you can use editBar, f.e. if you need to load the properties
dialog of your paragraph.

-- 
Best regards,

Zdenek Skodik
Magnolia International Ltd.

Magnolia®  - Simple Open-Source Content Management


On Tue, 2009-12-22 at 11:56 +0100, Carla Di Santis wrote:
> Hi all,
> I'm trying to upgrade from Magnolia 3.6 to Magnolia 4.1.2.
> In my old jsp I used the tag "editButton" with attribute "paragraph".
> Since this attribute is deprecated, I changed "paragraph" with "dialog".
> Now I can't use the tag "includeTemplate" to show the paragraph because
> I have this error:
> 
> ERROR info.magnolia.cms.taglibs.Include                 : Paragraph  not
> found for page /my-page/my-paragraph
> 
> In the error, the paragraph name is not identified so I am probably
> wrong... right?  
> 
> I also added the attribute "template" in the tag "editButton", with the
> path of the jsp of the paragraph.
> 
> My code:
> <cms:editButton
> template="/templates/my-module/paragraphs/my-paragraph.jsp"
> dialog="my-dialog" contentNodeName="my-paragraph" />
> <cms:includeTemplate contentNodeName="my-paragraph" />
> 
> My old code
> <cms:editButton paragraph="myParagraph" contentNodeName="my-paragraph"
> />
> <cms:includeTemplate contentNodeName="my-paragraph" />
> 
> What should I use?
> 
> Thanks
> 
> Carla
> 
> Le informazioni contenute in questo messaggio sono riservate e confidenziali 
> ed e vietata le diffusione in qualunque modo eseguita. Qualora Lei non fosse 
> la persona a cui il presente messaggio e destinato, La invitiamo ad 
> eliminarlo e a non leggerlo, dandocene gentilmente comunicazione. Per 
> qualsiasi informazione si prega di contattare ([email protected]). Rif. 
> D.L. 196/2003
> 
> This e-mail (including attachments) is intended only for the recipient(s) 
> named above. It may contain confidential or privileged information and should 
> not be read, copied or otherwise used by any other person. If you are not the 
> named recipient, please contact ([email protected]) and delete the 
> e-mail from your system. Rif. D.L. 196/2003.
> 
> 
> 
> 
> ----------------------------------------------------------------
> 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