Last active
September 3, 2015 10:08
-
-
Save ocidique/9146b931abfcc5e45f34 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <#-- | |
| * | |
| * Useful snippets using init_custom.ftl | |
| * | |
| --> | |
| <#-- Get Liferay site description --> | |
| <#assign site_description = htmlUtil.escape(page_group.getDescription()) /> | |
| <#-- Get Liferay journal article using custom field with expando bridge --> | |
| <#assign siteFieldsBridge = page_group.getExpandoBridge()> | |
| <#if siteFieldsBridge.hasAttribute("customField")> | |
| <#assign customField = (siteFieldsBridge.getAttribute("customField"))!"" /> | |
| </#if> | |
| <#if customField??> | |
| <#assign customFieldContent = (journalContentUtil.getContent(group_id, customField, "", locale.toString(), theme_display))!""/> | |
| </#if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment