Getting Tags from record(Blogs,Messageboard.....etc)
String tag = ParamUtil.getString(request, "tag"); //Getting the tag
PortletURL portletURL = renderResponse.createRenderURL();
Set
List
for(Blogs articleEntry :articleEntryAllList){
AssetEntry assetEntry = null;
try {
assetEntry = AssetEntryLocalServiceUtil.getEntry(ArticleEntry.class.getName(),articleEntry.getArticleEntryId());
List
assestSet.addAll(assestTagList);
} catch (Exception e){
e.printStackTrace();
}
}
if(assestSet.size()==0 &&assestSet.isEmpty()){
%>
There are No tags to display
<%
}else {
for(AssetTag asset : assestSet){
- }
<%= sbtag%>
<%
}
%>
Comments
Post a Comment