Liferay 7 WebContent structure's template - available variablesLiferay 7 WebContent structure's template - available variableshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1081128302024-03-29T05:21:58Z2024-03-29T05:21:58ZRE: Liferay 7 WebContent structure's template - available variablesAleksey Kashytsahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1084151832018-05-17T07:03:22Z2018-05-17T07:03:22ZYes, is still working also in Liferay 7. <br />My mistake was the way to access the fields: $ {reserved-article-title}<br />Using syntax $ {. Vars ['reserved-article-title']. Data} fields are available.<br />Thanks!Aleksey Kashytsa2018-05-17T07:03:22ZRE: Liferay 7 WebContent structure's template - available variablesAndrew Jardinehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1083684332018-05-16T13:30:50Z2018-05-16T13:30:50Z<html><head></head><body>You could also have a look in the source code at the class -- com.liferay.journal.model.JournalStructureContstants;<br><br><pre><code>public class JournalStructureConstants {
public static final String RESERVED = "reserved";
public static final String RESERVED_ARTICLE_ASSET_TAG_NAMES =
"reserved-article-asset-tag-names";
public static final String RESERVED_ARTICLE_AUTHOR_COMMENTS =
"reserved-article-author-comments";
public static final String RESERVED_ARTICLE_AUTHOR_EMAIL_ADDRESS =
"reserved-article-author-email-address";
public static final String RESERVED_ARTICLE_AUTHOR_ID =
"reserved-article-author-id";
public static final String RESERVED_ARTICLE_AUTHOR_JOB_TITLE =
"reserved-article-author-job-title";
public static final String RESERVED_ARTICLE_AUTHOR_LOCATION =
"reserved-article-author-location";
public static final String RESERVED_ARTICLE_AUTHOR_NAME =
"reserved-article-author-name";
public static final String RESERVED_ARTICLE_AUTHOR_ORGANIZATION =
"reserved-article-author-organization";
public static final String RESERVED_ARTICLE_CREATE_DATE =
"reserved-article-create-date";
public static final String RESERVED_ARTICLE_DESCRIPTION =
"reserved-article-description";
public static final String RESERVED_ARTICLE_DISPLAY_DATE =
"reserved-article-display-date";
public static final String RESERVED_ARTICLE_ID = "reserved-article-id";
public static final String RESERVED_ARTICLE_MODIFIED_DATE =
"reserved-article-modified-date";
public static final String RESERVED_ARTICLE_SMALL_IMAGE_URL =
"reserved-article-small-image-url";
public static final String RESERVED_ARTICLE_TITLE =
"reserved-article-title";
public static final String RESERVED_ARTICLE_TYPE = "reserved-article-type";
public static final String RESERVED_ARTICLE_URL_TITLE =
"reserved-article-url-title";
public static final String RESERVED_ARTICLE_VERSION =
"reserved-article-version";
</code></pre></body></html>Andrew Jardine2018-05-16T13:30:50ZRE: Liferay 7 WebContent structure's template - available variablesRayappa Hattarwathttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1083538172018-05-16T09:59:37Z2018-05-16T09:59:37ZRefer this link<br />https://dev.liferay.com/fr/discover/portal/-/knowledge_base/7-0/designing-uniform-contentRayappa Hattarwat2018-05-16T09:59:37ZRE: Liferay 7 WebContent structure's template - available variablesDanielle Ardonhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1083503442018-05-16T08:38:58Z2018-05-16T08:38:58ZYep, you can use the freemarker variables:<br /><br />for example:<br /><br />${.vars['reserved-article-title'].data} is the title<br /><br />Here is an overview of the freemarker variables in 6.2. Not sure if they are still all the same in liferay 7/DXP though:<br /><br />https://gist.github.com/bmvakili/5051f9c51469a1a7464cDanielle Ardon2018-05-16T08:38:58ZLiferay 7 WebContent structure's template - available variablesAleksey Kashytsahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1081128292018-05-11T11:13:33Z2018-05-11T11:13:33ZHi all! Creating template for my custom structure a can access fields that I have added to my str