Last active
March 14, 2016 16:19
-
-
Save elindoorn/58e3f887d133bbc35d7e to your computer and use it in GitHub Desktop.
Web content display in theme in Liferay 6.2, gets article by title so we don't need to hardcode id's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set ($journalArticleLocalService = $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")) | |
#set ($headerArticleId = $journalArticleLocalService.getArticleByUrlTitle($group_id, "header").getArticleId()) | |
#set ($headerContent = $journalContentUtil.getContent($group_id, $headerArticleId, "view", $locale.toString(), $themeDisplay)) | |
$headerContent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment