Hi,
I finally found this way to find out what I'm looking for:
Content currentPage = Resource.getActivePage(request);
Collection child =
currentPage.getContent("mainColumnParagraphs").getChildren(ItemType.CONTENTNODE);
Iterator it = child.iterator();
while (it.hasNext()) {
Content par = (Content) it.next();
Paragraph paragraphInfo =
ParagraphManager.getInstance().getInfo(par.getTemplate());
Collection pars = par.getChildren(ItemType.JCR_PRIMARY_TYPE);
out.println (paragraphInfo.getDialogPath());
out.println (paragraphInfo.getDialog());
}
Stéphane
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 17, 2008 9:04 AM
To: [email protected]
Subject: [magnolia-user] Paragraph properties
Hi magnolians,
Could you tell me how to access paragraph properties programatically?
Especially that properties: dialogPath, dialog, templatePath
I start from there:
Content currentPage = Resource.getActivePage(request);
Collection child =
currentPage.getContent("mainColumnParagraphs").getChildren(ItemType.CONTENTNODE);
Is that ok? What should I look for?
Many thanks for your help.
Stéphane
************************************************************************************
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
----------------------------------------------------------------