Navigation Menu - Submenu problemsNavigation Menu - Submenu problemshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1182949052024-03-28T14:01:10Z2024-03-28T14:01:10ZRE: Navigation Menu - Submenu problemsPete Helgrenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1184016922020-02-01T15:57:41Z2020-02-01T15:57:41ZThanks to both of you. Kishan, I am not sure what you mean by "you need help from UI which will give you a another box..." What I can verify, using the sample that Mohammed provided is that if you have a structure with like I showed above, which has a top level with an item and a submenu and then an item and a second submenu on that level with an item and a third submenu with an item, basically a three-level menu, ${entries?size} will only show 2 as the number of "navItems" in the list. So maybe that is what you are saying Kishan? Only the top levels are exposed in the list object by the theme? By my reckoning if you have 7 items on three levels then ${entries?size} should return 7, not 2. If you add three top level items, like a menu item and two additional submenus at the top, then the ${entries.size} shows 3. So as far as I can see, <#list navItems as navItem> is ONLY the top level list, the challenge is to get how many items the submenu has....Pete Helgren2020-02-01T15:57:41ZRE: Navigation Menu - Submenu problemsMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1183476302020-01-27T06:11:21Z2020-01-27T06:11:21Z<html><head></head><body>Hi , May be below sample code helps you<pre><code>&lt;#if entries?has_content&gt;
&nbsp; &nbsp; <ul>
&nbsp; &nbsp; &lt;#list entries as navItem&gt;&nbsp;
&nbsp; &nbsp; <li> &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <a href="${navItem.getURL()}">${navItem.getName()}</a>
&nbsp; &nbsp; &nbsp; &nbsp;<ul>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;#list navItem.getBrowsableChildren() &nbsp;as childNavItem&gt;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <li>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="${childNavItem.getURL()}">${childNavItem.getName()}</a>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <ul>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;#list childNavItem.getBrowsableChildren() &nbsp;as subChildNavItem&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <li>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="${subChildNavItem.getURL()}">${subChildNavItem.getName()}</a>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<!--#list-->
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</ul>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</li>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<!--#list-->&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</ul>
&nbsp; &nbsp; &nbsp; &nbsp; </li>
&nbsp; &nbsp; <!--#list-->&nbsp;
&nbsp; &nbsp; </ul>
<!--#if-->
</code></pre></body></html>Mohammed Yasin2020-01-27T06:11:21ZRE: Navigation Menu - Submenu problemsKishan Agrawalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1183472782020-01-27T05:56:03Z2020-01-27T05:56:03ZHello Pete Helgren,<br />You are right <br />Now what i would suggest is that liferay defult provide only head->child navigation for display <br />I think what you are looking is head -> child -> child -> or N number.<br />if you want to get this thing done you will have to devlope some theme related class which will give you another box.<br />in which you can have you child pages also that will full fill your task. I have applied many time 3-N number of ADT for nvigation but for that you need help From UI Which will give you another box for lending your N level pages in the navigation. <br />and if your question is how to apply ADT in the nvaigation you can easily get that :- https://portal.liferay.dev/docs/7-1/user/-/knowledge_base/u/adt-exampleKishan Agrawal2020-01-27T05:56:03ZRE: Navigation Menu - Submenu problemsPete Helgrenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1183068222020-01-20T22:03:00Z2020-01-20T22:03:00ZKishan. Thanks. But I could use a little more complete answer. Yes, I could have guessed an ADT could address the issue. But what about "how"? Maybe an example of how to go forward? Maybe a suggestion about how the ADT is applied to the navigation menu?<br /><br />I did find an example of a 4 level ADT <a href="https://www.knowarth.com/is-4-level-navigation-possible-in-liferay-7/">here</a> but like many answers on the forum, it doesn't mention all of the details, like how to apply an ADT to an existing navigation menu...Pete Helgren2020-01-20T22:03:00ZRE: Navigation Menu - Submenu problemsKishan Agrawalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182968522020-01-20T11:11:50Z2020-01-20T11:11:50ZHello,<br />Exectly not getting what you are looking for.But as per my understanding you are looking for 3 level navigation.<br />That can be achieved by costum ADT.Kishan Agrawal2020-01-20T11:11:50ZNavigation Menu - Submenu problemsPete Helgrenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182949042020-01-17T20:38:38Z2020-01-17T20:38:38ZI need to have at least a two level menu (three maybe) on the website I am developing. I am not 100% clear on how menuing works in 7.2. Here is what need:<br /><br />A top level menu of sub menus and then those submenus will have submenus as well. So I need multiples of this structure:<br />Top level item (defined as a submenu) . Then additional ones at this level......<br />- Item 1 -Item 2-submenu (level 1) --Submenu item 1 --Submenu item 2 --Submenu( level 2)And so on....<br />The Navigation Menus found under Site Builder looked like it would do what I wanted but I am getting results I don't quite understand. I have a single page and then two submenus at the "top" level (leftmost position on the menu page). Only the first submenu entry will display at the "top" level. The second submenu doesn't display at all. If I add a page at the "top" level, it will display but a second submenu will not. The same phenomenon applies to a submenu that has a submenu. That second submenu level doesn't display either.<br />Under pages, ther