Foros de discusión

Not able to restrict Global Categories and get Current Categories and tags

Balu Bollam, modificado hace 7 años.

Not able to restrict Global Categories and get Current Categories and tags

New Member Mensajes: 21 Fecha de incorporación: 23/10/16 Mensajes recientes
Hi Everyone,


I am trying to get Current categories and tags using ClassPK variable in <liferay-ui:asset-tags-selector> tag and <liferay-ui:asset-categories-selector> ..........
But iam not getting t tags as added i.e added tags are not displaying...


Please correct me if iam going wrong for the below code

<%
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
User user = themeDisplay.getUser();
long[] data = new long[]
{themeDisplay.getScopeGroupId()}
long bid=Long.parseLong(request.getParameter("bid"));
out.print(bid);
%>

Categories: <liferay-ui:asset-categories-selector roupIds="<%=data%>" classPK="<BookMarkId>" className=" <%= BookmarksEntry.class.getName() %>"/>
<div id="tags">
Tags:
<liferay-ui:asset-tags-selector groupIds="<%=data%>" classPK="<BookMarkId>"></liferay-ui:asset-tags-selector>
</div>



Please help me Out ....

Thanks In advance.
Balu