<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Commerce Categories Navigation Template and Friendly URL</title>
  <link rel="self" href="https://liferay.dev/ja/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121376039" />
  <subtitle>Commerce Categories Navigation Template and Friendly URL</subtitle>
  <id>https://liferay.dev/ja/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121376039</id>
  <updated>2026-06-02T12:52:24Z</updated>
  <dc:date>2026-06-02T12:52:24Z</dc:date>
  <entry>
    <title>RE: RE: Commerce Categories Navigation Template and Friendly URL</title>
    <link rel="alternate" href="https://liferay.dev/ja/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376120" />
    <author>
      <name>Gennaro Lippiello</name>
    </author>
    <id>https://liferay.dev/ja/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376120</id>
    <updated>2022-03-10T16:52:33Z</updated>
    <published>2022-03-10T08:27:42Z</published>
    <summary type="html">&lt;p&gt;Thank you very much, I tried and it works!&lt;/p&gt;</summary>
    <dc:creator>Gennaro Lippiello</dc:creator>
    <dc:date>2022-03-10T08:27:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Commerce Categories Navigation Template and Friendly URL</title>
    <link rel="alternate" href="https://liferay.dev/ja/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376293" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/ja/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376293</id>
    <updated>2022-03-10T16:52:43Z</updated>
    <published>2022-03-09T19:31:53Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You can try below code for fetching friendly url &lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;&amp;lt;#if entries?has_content&amp;gt;
	&amp;lt;#list entries as curAssetCategory&amp;gt;
				&amp;lt;#assign
				categoryHref = cpAssetCategoriesNavigationDisplayContext
				.getFriendlyURL(curAssetCategory.getCategoryId(), themeDisplay)
			/&amp;gt;
		${categoryHref}
	&amp;lt;/#list&amp;gt;
&amp;lt;/#if&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2022-03-09T19:31:53Z</dc:date>
  </entry>
  <entry>
    <title>Commerce Categories Navigation Template and Friendly URL</title>
    <link rel="alternate" href="https://liferay.dev/ja/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376038" />
    <author>
      <name>Gennaro Lippiello</name>
    </author>
    <id>https://liferay.dev/ja/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376038</id>
    <updated>2022-03-09T16:53:46Z</updated>
    <published>2022-03-09T11:22:14Z</published>
    <summary type="html">&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I'm creating a Widget Template (Commerce Categories Navigation). &lt;/p&gt;
&lt;p&gt;I'm working with AssetCategory class
  (https://learn.liferay.com/reference/latest/en/dxp/javadocs/portal-kernel/com/liferay/asset/kernel/model/AssetCategory.html)
  and I'm wondering how can I get the friendly url.&lt;/p&gt;
&lt;p&gt;Liferay Community Edition Portal 7.4.3.13 CE GA13&lt;/p&gt;</summary>
    <dc:creator>Gennaro Lippiello</dc:creator>
    <dc:date>2022-03-09T11:22:14Z</dc:date>
  </entry>
</feed>
