Skip to content

Instantly share code, notes, and snippets.

@bmvakili
Created January 20, 2015 14:23
Show Gist options
  • Save bmvakili/5051f9c51469a1a7464c to your computer and use it in GitHub Desktop.
Save bmvakili/5051f9c51469a1a7464c to your computer and use it in GitHub Desktop.
liferay 6.2 GA2 web content template freemarker variables available
scopeGroupId
expandoRowLocalService
reserved-article-id
unicodeLanguageUtil
serviceLocator
reserved-article-author-email-address
userGroupPermission
userPermission
staticFieldGetter
Images
reserved-article-description
imageToken
dateFormatFactory
locationPermission
organizationPermission
stringUtil
reserved-article-modified-date
ddmUtil
Permission_to_Enter
request
articleGroupId
httpUtil
Email_Address
reserved-article-create-date
writer
portletPermission
Comments
permissionChecker
paramUtil
localeUtil
expandoValueLocalService
portal
randomizer
reserved-article-title
reserved-article-author-job-title
portalUtil
jsonFactoryUtil
randomNamespace
reserved-article-version
company
arrayUtil
reserved-article-small-image-url
reserved-article-url-title
reserved-article-author-id
siteGroupId
htmlUtil
sessionClicks
freeMarkerPortletPreferences
groupPermission
velocityTaglib_layoutIcon
accountPermission
passwordPolicyPermission
validator
saxReaderUtil
locale
layoutPermission
rolePermission
reserved-article-type
reserved-article-display-date
calendarFactory
objectUtil
templatesPath
commonPermission
dlUtil
reserved-article-author-comments
browserSniffer
staticUtil
prefsPropsUtil
windowStateFactory
languageUtil
webServerToken
getterUtil
reserved-article-author-name
timeZoneUtil
reserved-article-asset-tag-names
expandoTableLocalService
xmlRequest
auditMessageFactoryUtil
enumUtil
journalTemplatesPath
unicodeFormatter
groupId
dateUtil
portalPermission
Phone_Number
dateFormats
utilLocator
device
auditRouterUtil
portletModeFactory
viewMode
journalContentUtil
propsUtil
portletURLFactory
companyId
expandoColumnLocalService
@netlander
Copy link

Liferay 6.2 Freemarker doesn't like variables with dashes (hyphens) in them like reserved-article-title. Any ideas how to get to those variables?

@fanchklk
Copy link

Try this :
${.vars['reserved-article-title'].data}

@russkayairina
Copy link

Thank you! This helped

@dorjee-tsering-liferay
Copy link

Thanks, it is very helpful!

@Openskies
Copy link

Openskies commented Jun 3, 2021

Are there variables to grab an article's:

  • Review Date
  • Expiration Date
  • Status (DRAFT or APPROVED)
  • Name of person who APPROVED the Article

If not, can I grab and display this information in another way?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment