Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Henry Ng
AssetTags
June 5, 2013 12:38 AM
Answer

Henry Ng

Rank: Junior Member

Posts: 29

Join Date: April 21, 2013

Recent Posts

Hi Guys

I been using
1<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"
Juan Gonzalez
RE: AssetTags
June 5, 2013 5:08 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2295

Join Date: October 28, 2008

Recent Posts

Seems you have a permissions issue. Just checkt that categories/tags have the right permissions.
Henry Ng
RE: AssetTags
June 5, 2013 6:49 PM
Answer

Henry Ng

Rank: Junior Member

Posts: 29

Join Date: April 21, 2013

Recent Posts

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.


 1
 2 String tempIndustry = ParamUtil.getString(actionRequest, "assetTagNames");
 3 StringTokenizer st = new StringTokenizer(tempIndustry,",");
 4             while(st.hasMoreElements())
 5             {
 6                 String temp = (String) st.nextElement();
 7                 AssetTag tempAS =  AssetTagLocalServiceUtil.createAssetTag(CounterLocalServiceUtil.increment());
 8                 tempAS.setName(temp);
 9                 AssetTagLocalServiceUtil.addAssetTag(tempAS);
10             }


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

Thanks for your reply btw.