Asset Renderer Get Asset CategoriesAsset Renderer Get Asset Categorieshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1178391822024-03-28T08:25:14Z2024-03-28T08:25:14ZRE: Asset Renderer Get Asset CategoriesJan van der Kaadenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1180821622019-12-14T21:22:35Z2019-12-14T21:22:35ZHi Mohamed,For as far as i know when you create a category (in the control-panel) you fill out the name, which underwater is the title, the default language will create the 'name' which has no translations. So what you probably want to use is the Title. If you need an extra field to put data in for a category you can also consider using the properties to add a key - value pair. Although this offers no localization, maybe you can mimic that by a convention in the property name.Jan van der Kaaden2019-12-14T21:22:35ZRE: Asset Renderer Get Asset CategoriesArun Pandianhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1178410282019-11-21T14:58:27Z2019-11-21T14:58:27Z@Mohammed Yasin, <br /><br />I want to print the asset category in template(ADT) your code does not help me <br /><blockquote><br /><#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")><br /><br /><#assign values = portletPreferences['queryValues0'] /><br /><#if values?has_content><br /><li>Query Values:<br /><ul><br /><#list values as value><br /><li>${value}</li><br /><#assign assetCategory = AssetCategoryLocalService.getCategory(value?number) />${assetCategory.getTitle()}${assetCategory.getName()}<li><br /></li><br /></#list><br /></ul><br /></li><br /></#if><br /></blockquote><br />Hope it helps someone only issue is i am not able to get Name by locale as it takes 0 argument where as getTitle takes 1 argument locale but title is always empty when categories created from the control panel... can you help me on this?<br /><blockquote><br /></blockquote>Arun Pandian2019-11-21T14:58:27ZRE: Asset Renderer Get Asset CategoriesMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1178377922019-11-21T07:40:28Z2019-11-21T07:40:28Z<html><head></head><body>Hi ,You can use Taglib for showing asset categories of selected asset entry in ftl<pre><code>&lt;@liferay_asset["asset-categories-summary"]
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;className=entry.getClassName()
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;classPK=entry.getClassPK()
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;portletURL=renderResponse.createRenderURL()
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;/&gt;</code></pre></body></html>Mohammed Yasin2019-11-21T07:40:28ZAsset Renderer Get Asset CategoriesArun Pandianhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1178391812019-11-21T06:10:51Z2019-11-21T06:10:51ZHi, Can i able to Get the