<?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>Liferay 7.2 - How to add Navigation Menus programmatically?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115111248" />
  <subtitle>Liferay 7.2 - How to add Navigation Menus programmatically?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115111248</id>
  <updated>2026-04-04T16:18:53Z</updated>
  <dc:date>2026-04-04T16:18:53Z</dc:date>
  <entry>
    <title>RE: Liferay 7.2 - How to add Navigation Menus programmatically?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115115425" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115115425</id>
    <updated>2019-09-06T14:19:19Z</updated>
    <published>2019-09-06T14:19:19Z</published>
    <summary type="html">That&amp;#39;s it! Thank you very much!</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-09-06T14:19:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to add Navigation Menus programmatically?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115113810" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115113810</id>
    <updated>2019-09-06T14:16:17Z</updated>
    <published>2019-09-06T14:16:17Z</published>
    <summary type="html">You can use this gradle dependency compile group: &amp;#39;com.liferay&amp;#39;, name: &amp;#39;com.liferay.site.navigation.api&amp;#39;, version: &amp;#39;as per your target&amp;#39;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-09-06T14:16:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to add Navigation Menus programmatically?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115113086" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115113086</id>
    <updated>2019-09-06T14:14:11Z</updated>
    <published>2019-09-06T14:14:11Z</published>
    <summary type="html">Hi Mohammed,&lt;br /&gt;&lt;br /&gt;Thanks a lot for the answer. This looks indeed the solution, but I can&amp;#39;t find those classes anywhere.  Using any of those classes on my portlet result on a &amp;#34;cannot be resolved as a type&amp;#34;. Are those classes from a certain package that I need to import?</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-09-06T14:14:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to add Navigation Menus programmatically?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115112310" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115112310</id>
    <updated>2019-09-06T12:37:04Z</updated>
    <published>2019-09-06T12:37:04Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi ,&lt;br&gt;You can try below Utilities&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;SiteNavigationMenuLocalServiceUtil
SiteNavigationMenuItemLocalServiceUtil&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-09-06T12:37:04Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.2 - How to add Navigation Menus programmatically?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115111247" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115111247</id>
    <updated>2019-09-06T11:35:39Z</updated>
    <published>2019-09-06T11:35:39Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I have been adding groups and layouts with the GroupLocalServiceUtil and LayoutLocalServiceUtil classes respectively. I was wondering if there is some way to add Navigation Menus programmatically with some Util class like the previous examples.&lt;br /&gt;&lt;br /&gt;How can I add a Navigation Menu programmatically?</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-09-06T11:35:39Z</dc:date>
  </entry>
</feed>
