<?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>Embed secondary navigation menu in Liferay theme</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111785853" />
  <subtitle>Embed secondary navigation menu in Liferay theme</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111785853</id>
  <updated>2026-04-06T18:27:59Z</updated>
  <dc:date>2026-04-06T18:27:59Z</dc:date>
  <entry>
    <title>RE: Embed secondary navigation menu in Liferay theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111798634" />
    <author>
      <name>Elena Stefanova</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111798634</id>
    <updated>2018-12-13T09:17:15Z</updated>
    <published>2018-12-13T09:17:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi, Patrick!&lt;/p&gt;
&lt;p&gt;Thank you so much for you quick answer! Your solution worked great
  for me&amp;nbsp;&lt;img alt="smiley" height="23" src="https://community.liferay.com/o/frontend-editor-ckeditor-web/ckeditor/plugins/smiley/images/regular_smile.png" title="smiley" width="23"&gt;&amp;nbsp;Following your advices I changed
  preference &lt;code&gt;"selectSiteNavigationMenu"&lt;/code&gt; to
  &lt;code&gt;"siteNavigationMenuType"&lt;/code&gt; as now I pass a
  different &lt;code&gt;instance_id&lt;/code&gt; each time on deployment.&amp;nbsp;Obviously
  this the correct approach.&lt;/p&gt;
&lt;p&gt;Thank you once again!&lt;/p&gt;
&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Eli&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Elena Stefanova</dc:creator>
    <dc:date>2018-12-13T09:17:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Embed secondary navigation menu in Liferay theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111792194" />
    <author>
      <name>Patrick Yeo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111792194</id>
    <updated>2018-12-12T17:20:20Z</updated>
    <published>2018-12-12T17:20:20Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hey Eli,&lt;/p&gt;
  Instead of &lt;code&gt;"selectSiteNavigationMenuType": "2"&lt;/code&gt;
  try using &lt;code&gt;"siteNavigationMenuType": "2"&lt;/code&gt;
 . There is a quirk (feature or bug) with embedded portlets where once
it's deployed the &lt;code&gt;default_preferences&lt;/code&gt;
  can't be updated again on subsequent deploys. The only way to make
changes apply is to delete the embedded portlet's preferences from the
database. The way I would test changes to &lt;code&gt;default_preferences&lt;/code&gt;
  is to change the &lt;code&gt;instance_id&lt;/code&gt;
  every time I make a change and deploy.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Patrick Yeo</dc:creator>
    <dc:date>2018-12-12T17:20:20Z</dc:date>
  </entry>
  <entry>
    <title>Embed secondary navigation menu in Liferay theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111785852" />
    <author>
      <name>Elena Stefanova</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111785852</id>
    <updated>2018-12-12T14:27:48Z</updated>
    <published>2018-12-12T14:27:48Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi, there!&lt;/p&gt;
&lt;p&gt;I'm currently developing a new theme in Liferay&amp;nbsp;7.1.1-ga2. In this
  theme I need to show two navigation menus - primary and secondary. I
  already created these menus in my admin and now I'm trying
  to&amp;nbsp;embed&amp;nbsp;them in my theme.&amp;nbsp;Unfortunatelly, I cannot set the correct
  menu type for the secondary menu. Nomatter what preferences I'm trying
  to pass I always see the primary navigation menu. The code that I use
  is the following:&lt;/p&gt;
&lt;code&gt;&amp;amp;lt;#assign preferencesMap = {&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
  &amp;amp;nbsp;"displayDepth": "1",&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
  &amp;amp;nbsp;"selectSiteNavigationMenuType": "2"&amp;amp;nbsp; // -&amp;amp;gt;
  this is the matching type identifier&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;}&amp;lt;br&amp;gt; /&amp;amp;gt;&amp;lt;br&amp;gt;
  &amp;amp;lt;@liferay.navigation_menu&amp;lt;br&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp;
  &amp;amp;nbsp;default_preferences=freeMarkerPortletPreferences.getPreferences(preferencesMap)&amp;lt;br&amp;gt;
  &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;instance_id="secondary_navigation"&amp;lt;br&amp;gt; /&amp;amp;gt;&lt;/code&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I doing something wrong or it is impossible to achieve what I need?&lt;/p&gt;
&lt;p&gt;Any help will be appreciated!&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Eli&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Elena Stefanova</dc:creator>
    <dc:date>2018-12-12T14:27:48Z</dc:date>
  </entry>
</feed>
