This website uses cookies to ensure you get the best experience. Learn More.
A Checkbox Named Cacheable
#set ($journalArticleLocalService = $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleService")) #set($journalArticle = $journalArticleLocalService.getArticleByUrlTitle($group_id, "top-nav-links")) #set ($contentMarkup = $journalContentUtil.getContent($themeDisplay.getScopeGroupId(), $journalArticle.getArticleId(), null, $locale.toString(), $themeDisplay)) $contentMarkup
#set ($journalArticleLocalService = $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleService"))
#set($journalArticle = $journalArticleLocalService.getArticleByUrlTitle($group_id, "top-nav-links"))
#set ($contentMarkup = $journalContentUtil.getContent($themeDisplay.getScopeGroupId(), $journalArticle.getArticleId(), null, $locale.toString(), $themeDisplay))
$contentMarkup
#* This file allows you to override and define new Velocity variables. *# #set ($headerScript = $theme.getSetting("header-scripts")) #set ($bodyScript = $theme.getSetting("body-scripts")) #set ($journalArticleLocalService = $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleService")) #macro ( includeContent $contentTitle ) #set($journalArticle = $journalArticleLocalService.getArticleByUrlTitle($group_id, $contentTitle)) #set ($contentMarkup = $journalContentUtil.getContent($themeDisplay.getScopeGroupId(), $journalArticle.getArticleId(), null, $locale.toString(), $themeDisplay)) $contentMarkup #end
#*
This file allows you to override and define new Velocity variables.
*#
#set ($headerScript = $theme.getSetting("header-scripts"))
#set ($bodyScript = $theme.getSetting("body-scripts"))
#macro ( includeContent $contentTitle )
#set($journalArticle = $journalArticleLocalService.getArticleByUrlTitle($group_id, $contentTitle))
#end