Forums de discussion

How to get the data of child element in structure and templates

thumbnail
sunita satpathy, modifié il y a 14 années.

How to get the data of child element in structure and templates

New Member Publications: 14 Date d'inscription: 18/02/10 Publications récentes
Hi,

I need to create a web content using the structure and template options in journal.
My requirement is to create a content which contain a image, a text and a link to page.
So i have created a structure in which i have defined a element as image gallery and a child element of it as text and link to page. Now I am able to get the data for the image using $image.Data but not bale to get the text in the text field and the link to page using same. Please help me how to get the data for a child element
thumbnail
Tina Agrawal, modifié il y a 14 années.

RE: How to get the data of child element in structure and templates

Expert Publications: 297 Date d'inscription: 03/01/08 Publications récentes
Hi Sunita,

You can access the child elements using the parent.

Something like -

$image.name.getData()

Regards,
Tina Agrawal
thumbnail
sunita satpathy, modifié il y a 14 années.

RE: How to get the data of child element in structure and templates

New Member Publications: 14 Date d'inscription: 18/02/10 Publications récentes
thanx