Liferay Symposium 2016 | Reserve your seat today.
2. Using Liferay
(Opens New Window)
Mark as an Answer
Get the article by Tag Name
December 20, 2012 10:53 AM
Rank: New Member
Join Date: June 29, 2012
Could you please tell me how to get the article by Tag Name that is not more than one year old using velocity template?
Here is my script:
#set ($groupId = $getterUtil.getLong($groupId))
#set($assetTagLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService"))
#set($tag = $assetTagLocalService.getTag($groupId,"alert"))
I have the tagId with me and would like to get all the articles with this tagId and that is published since last one year.
Sign in to vote.
Please sign in to flag this as inappropriate.