Fórum

AssetTags

Henry Ng, modificado 10 Anos atrás.

AssetTags

Junior Member Postagens: 29 Data de Entrada: 21/04/13 Postagens Recentes
Hi Guys

I been using
<liferay-ui:asset-tags-selector></liferay-ui:asset-tags-selector>

to get tags and add into Lportal database.
But is there anyway for me to modify the "Select" button. Because now I can only view tags created by me and not everyone.

Or

Is there anyway I got retrieve tags from a custom table created instead of the original "assettag"
thumbnail
Juan Gonzalez, modificado 10 Anos atrás.

RE: AssetTags

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Seems you have a permissions issue. Just checkt that categories/tags have the right permissions.
Henry Ng, modificado 10 Anos atrás.

RE: AssetTags

Junior Member Postagens: 29 Data de Entrada: 21/04/13 Postagens Recentes
I tried but it isn't the problem. Because If I add using the control panel It could be seen.
If I try the custom one I create with the following codes to add, I can find it in the database but can't be seen.



 String tempIndustry = ParamUtil.getString(actionRequest, "assetTagNames"); 
 StringTokenizer st = new StringTokenizer(tempIndustry,",");
		     while(st.hasMoreElements())
		     {
		    	 String temp = (String) st.nextElement();
			     AssetTag tempAS =  AssetTagLocalServiceUtil.createAssetTag(CounterLocalServiceUtil.increment());
				 tempAS.setName(temp);
				 AssetTagLocalServiceUtil.addAssetTag(tempAS);
		     }


I think I didn't set the permission when using the custom portlet. Can someone enlight me on this?

Thanks for your reply btw.