Monday, April 1, 2019

Retrieve an Journal Article details with velocity in a template

 Below are the list of variables which we can use in template to retrieve the values of particular article

$reserved-article-id.data
$reserved-article-version.data
$reserved-article-title.data
$reserved-article-create-date.data
$reserved-article-modified-date.data
$reserved-article-display-date.data
$reserved-article-author-id
$reserved-article-author-name
$reserved-article-author-email-address
$reserved-article-author-comments
$reserved-article-author-organization
$reserved-article-author-location
$reserved-article-author-job-title

Example :-

${.vars['reserved-article-id'].data} :- It is used to read the article id which we are displaying in webcontent.

1 comment:

rajani kota said...

Informative blog thanks for providing such a great information.
DevOps Training
DevOps Online Training

Liferay DXP JNDI Data Source Cofiguration

 This Blog will help us to learn about the JNDI Data Source Configuration in Liferay DXP. We have tested this with Liferay 7.3 with Tomcat. ...