Foros de discusión
Get the article by Tag Name
Srividhya Mohanasundaram, modificado hace 11 años.
Get the article by Tag Name
New Member Mensajes: 22 Fecha de incorporación: 29/06/12 Mensajes recientes
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.
Thanks
Sri
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.
Thanks
Sri