Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Srividhya Mohanasundaram
Get the article by Tag Name
December 20, 2012 10:53 AM

Srividhya Mohanasundaram

Rank: New Member

Posts: 21

Join Date: June 29, 2012

Recent Posts

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.