Created
September 29, 2011 23:40
-
-
Save farmerbradllc/1252250 to your computer and use it in GitHub Desktop.
Get Article Id by Article Title
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($journalArticleLocalServiceUtil = $portal.getClass().forName("com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil")) | |
#foreach($article in $journalArticleLocalServiceUtil.getArticles($group_id) | |
#if($article.title == "Social Links (Embedded)") | |
#set($social-article-id = $article.articleId) | |
#end | |
#end | |
#set($social-links=$journalContentUtil.getContent($group_id, $social-article-id,null,"$locale",$theme_display)) | |
$social-links | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment