Hi Stéphane,

Another approach would be to write your own ParagraphRenderer (if you're using 3.5+): extend JspParagraphRenderer and have it put the Paragraph object in your pageContext. If this is a common need (?) we might add that by default in a future version, let us know :)

Cheers

-g


On Jan 17, 2008, at 09:26 , Gauthier, Stephane (CH) wrote:

Hi Harold,

Thank you very much for your answer
I put that code aside for the future ;-)?
I forgot to mention that I want to see that within a page.

Regards

Stéphane


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 17, 2008 9:17 AM
To: [email protected]
Subject: Re: [magnolia-user] Paragraph properties

Hi Stephane,


Could you tell me how to access paragraph properties programatically?

 From where do you need to acces to these properties?
JSP? Tag? Java class?
Especially that properties: dialogPath, dialog, templatePath

Get the paragraph node like that:
HierarchyManager hm = MgnlContext.getSystemContext ().getHierarchyManager();
Content paragraphNode =
hm.getContent("/modules/moduleName/paragraphs/paragraphName");
Nodedata nodedata = paragraphNode.getNodeData("property1");
String value = nodedata.getString();

Regards,

CAPITAINE Harold


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

********************************************************************** ************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager ([EMAIL PROTECTED]) and delete the message with any attached files from your system. The confidentiality and integrity of this message cannot be guaranteed on the Internet and the sender does not accept liability for its content.

********************************************************************** *************


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to