How to make a drop-down list in the menu?

Can't really understand how to implement it using pdoMenu. There is a horizontal menu 5cfa27a6c69c7229681749.png ,it is displayed using pdoMenu just . I need to hover on "About us" ,had a list of three sub-menus . I created in the parent. It has id = 6 . Now, if I add in the parents then the entire menu collapses ,it becomes inactive and the three Vice-versa control displays and active
[[pdoMenu?
&parents=`0,6`
 &displayStart =`1`
 &hideSubMenus = `1`
&level=`5`
 &tplOuter=`@INLINE <ul class="header__menu">[[+wrapper]]</ul>`
 &tpl=`@INLINE <li><a href="[[+link]]" [[+classes]]>[[+menutitle]]</a></li>`

 ]]

5cfa290b90a5b737792696.png
March 23rd 20 at 19:30
1 answer
March 23rd 20 at 19:32
does not work ,it all falls apart (( - lucile_Parisian commented on March 23rd 20 at 19:35
@lucile_Parisian, the first time may not be possible. Happen. - Naomi.Rath58 commented on March 23rd 20 at 19:38
@Naomi.Rath58,
&tplParentRow=`@INLINE <li[[+classes]] data-uk-dropdown>
here data-uk-dropdown is the name of the class is specified ? - lucile_Parisian commented on March 23rd 20 at 19:41
@lucile_Parisian, is an attribute of the tag - Naomi.Rath58 commented on March 23rd 20 at 19:44
@Naomi.Rath58, 5cfa3534b7459345320985.png here's what happens - lucile_Parisian commented on March 23rd 20 at 19:47
@Naomi.Rath58,
[[pdoMenu?
&parents=`0`
&level=`5`
 &hereClass =`active`
 &lastClass=` 
&firstClass=`
 &tplParentRow=`@INLINE <li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]]</li>`
 &tplParentRowActive=`@INLINE <li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]]</li>`
 &tplOuter=`@INLINE <ul class="header__menu">[[+wrapper]]</ul>`
 &tpl=`@INLINE <li><a href="[[+link]]" [[+classes]]>[[+menutitle]]</a></li>`

 ]]
- lucile_Parisian commented on March 23rd 20 at 19:50
@lucile_Parisian, First do so in the HTML code all worked (i.e. layout - make 2nd level static), and then pull) - deontae commented on March 23rd 20 at 19:53
@deontae, and how to do it if the template is hidden ? it is in the database,I understand. The first time I see it ,it would be easy to add static finding template - lucile_Parisian commented on March 23rd 20 at 19:56
@lucile_Parisian, what's the difference where he is. Nothing prevents to make it static. Read the documentation. Or a movie on youtube view. It's full of lessons. - Naomi.Rath58 commented on March 23rd 20 at 19:59
@Naomi.Rath58, thank you )) - lucile_Parisian commented on March 23rd 20 at 20:02
@Naomi.Rath58,it can be anywhere to bring ?next to the main menu - lucile_Parisian commented on March 23rd 20 at 20:05
@lucile_Parisian, Create a page with a blank template, skopirujte it all the code (of frontend) and save - you will be static, and then otverstiya menu, and then try to pull pdoMenu - deontae commented on March 23rd 20 at 20:08
@deontae, static is not an option to do that . I need to exclude. Type all that is displayed or hidden ,and one menu showed their children on hover. - lucile_Parisian commented on March 23rd 20 at 20:11
@lucile_Parisian, Static page do to make 2nd level (html+css), then just shift in dynamics) - deontae commented on March 23rd 20 at 20:14
@deontae, all this didn't have to do what you suggest ,but thanks for the replies . I did it with
&tplParentRow=`@INLINE <li class="submenu_wrapp"><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]]</li>`
 &tplInner=`@INLINE <ul class="submenu">[[+wrapper]]</ul>`
. Well, ruled out the withdrawal of the excess in &parents - lucile_Parisian commented on March 23rd 20 at 20:17

Find more questions by tags MODX