Skip to content

Instantly share code, notes, and snippets.

@baxtheman
Last active May 30, 2022 09:52
Show Gist options
  • Save baxtheman/b559fd146f54002f9d8ad5c6d8f20ae7 to your computer and use it in GitHub Desktop.
Save baxtheman/b559fd146f54002f9d8ad5c6d8f20ae7 to your computer and use it in GitHub Desktop.
Liferay 7, web content template freemarker context variables
<#assign TITLE = .vars['reserved-article-title'].data />
<#assign DISPLAYDATE = .vars['reserved-article-display-date'].data?date('EEE, dd MMM yyyy HH:mm:ss Z') />
${DISPLAYDATE?string["dd MMMM yyyy"]}
<button type="button" class="btn btn-secondary btn-sm">
<@liferay_ui["message"] key="read-more"/>
</button>
<#-- ALL CONTEXT VARS
Application
PortalJspTagLibs
PortletJspTagLibs
Request
accountPermission
adaptive_media_image
arrayUtil
articleGroupId
auditMessageFactoryUtil
auditRouterUtil
bodyCssClass
browserSniffer
calendarFactory
chart
clay
colorScheme
commonPermission
company
companyId
dateFormatFactory
dateFormats
dateUtil
device
enumUtil
expandoColumnLocalService
expandoRowLocalService
expandoTableLocalService
expandoValueLocalService
freeMarkerPortletPreferences
fullCssPath
fullTemplatesPath
getterUtil
groupId
groupPermission
htmlUtil
httpUtil
imageToken
imageToolUtil
init
journalContent
journalContentUtil
journalTemplatesPath
jsonFactoryUtil
languageUtil
layout
layoutPermission
layoutTypePortlet
layouts
liferay-fragment
liferay_asset
liferay_aui
liferay_comment
liferay_document_library
liferay_editor
liferay_expando
liferay_flags
liferay_frontend
liferay_item_selector
liferay_journal
liferay_layout
liferay_map
liferay_portlet
liferay_product_navigation
liferay_reading_time
liferay_rss
liferay_security
liferay_sharing
liferay_site
liferay_site_navigation
liferay_social_activities
liferay_social_bookmarks
liferay_theme
liferay_trash
liferay_ui
liferay_util
locale
localeUtil
locationPermission
navItems
organizationPermission
paramUtil
passwordPolicyPermission
permissionChecker
plid
portal
portalPermission
portalUtil
portlet
portletDisplay
portletGroupId
portletModeFactory
portletPermission
portletProviderAction
portletRequestModelFactory
portletURLFactory
prefsPropsUtil
propsUtil
randomNamespace
randomizer
realUser
renderRequest
renderResponse
request
requestMap
reserved-article-asset-tag-names
reserved-article-author-comments
reserved-article-author-email-address
reserved-article-author-id
reserved-article-author-job-title
reserved-article-author-name
reserved-article-create-date
reserved-article-description
reserved-article-display-date
reserved-article-id
reserved-article-modified-date
reserved-article-small-image-url
reserved-article-title
reserved-article-url-title
reserved-article-version
rolePermission
saxReaderUtil
scopeGroupId
sessionClicks
siteGroupId
stringUtil
taglibLiferayHash
templatesPath
theme
themeDisplay
themeDisplayModel
timeZone
timeZoneUtil
unicodeFormatter
unicodeLanguageUtil
user
userGroupPermission
userPermission
validator
viewMode
webServerToken
windowStateFactory
writer
xmlRequest
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment