RE: How to get the data of subfield in adt

Olaf Kock, modified 3 Years ago. New Member Posts: 2 Join Date: 12/2/20 Recent Posts

i have a repeatable field in structure which name is title . inside this i have another text field subtitle . my question is how to get the data of subtitle .

thumbnail
Olaf Kock, modified 3 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

You can either drag&drop or double click the template elements, so that you get some sample code into your template. For something within a repeatable field, you'll need to place the template code within the loop for that repeatable field.

thumbnail
Eric D, modified 3 Years ago. Junior Member Posts: 59 Join Date: 3/25/16 Recent Posts

ADT are cool but do the right way with structure, model and ADT :

https://liferay.dev/fr/blogs/-/blogs/divide-and-conquer-rendering-structured-web-content-with-the-asset-publisher

For title it is special, you need to use :

.vars['reserved-article-title'].data

 

Eric.