<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help creating a dropdown menu module in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/824924#M35142</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/181229"&gt;@Amita&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Did you get this resolved? If not, it looks like&amp;nbsp;&lt;SPAN&gt;you are using the &lt;/SPAN&gt;&lt;CODE&gt;simple_menu&lt;/CODE&gt;&lt;SPAN&gt; tag within a loop for each node in your &lt;/SPAN&gt;&lt;CODE&gt;menu_tree&lt;/CODE&gt;. I wonder if this is causing&lt;SPAN&gt;&amp;nbsp;all the menu items to be rendered for each option in the dropdown.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks! — Jaycee &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 19:38:42 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-07-25T19:38:42Z</dc:date>
    <item>
      <title>Help creating a dropdown menu module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/823345#M35106</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to turn the "simple menu" module into a dropdown list instead of an actual page menu structure, but I've run into a roadblock. I'm probably doing something wrong (trial and error over here!) so any guidance would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I've used to create my own module:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="version-changer"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Current as of &lt;BR /&gt;&amp;lt;select id="version-dropdown"&amp;gt;&lt;BR /&gt;{% for node in module.menu_tree %}&lt;BR /&gt;&amp;lt;option value="{{ node.menu-item.link }}"&amp;gt;{% simple_menu menu_tree="{{ module.menu_tree }}" %}&amp;lt;/option&amp;gt;&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;/select&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;And I'm just using the Simple Menu (label: menu_tree) to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I test this out and add a few menu items for the dropdown to display, I run into issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my options are:&lt;/P&gt;&lt;P&gt;- Blog (/blog)&lt;/P&gt;&lt;P&gt;- News (/news)&lt;/P&gt;&lt;P&gt;- Events (/events)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the dropdown menu produces this:&lt;/P&gt;&lt;P&gt;- Blog News Events&lt;/P&gt;&lt;P&gt;- Blog News Events&lt;/P&gt;&lt;P&gt;- Blog News Events&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using ChatGPT to help me understand what I'm doing wrong, but when I use the suggestions that it gives me, all the text disappears from the dropdown and I just see 3 (or however many) blank options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be amazingly appreciated! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:32:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/823345#M35106</guid>
      <dc:creator>Amita</dc:creator>
      <dc:date>2023-07-21T17:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a dropdown menu module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/824924#M35142</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/181229"&gt;@Amita&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Did you get this resolved? If not, it looks like&amp;nbsp;&lt;SPAN&gt;you are using the &lt;/SPAN&gt;&lt;CODE&gt;simple_menu&lt;/CODE&gt;&lt;SPAN&gt; tag within a loop for each node in your &lt;/SPAN&gt;&lt;CODE&gt;menu_tree&lt;/CODE&gt;. I wonder if this is causing&lt;SPAN&gt;&amp;nbsp;all the menu items to be rendered for each option in the dropdown.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks! — Jaycee &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 19:38:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/824924#M35142</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-07-25T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a dropdown menu module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/825323#M35152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;! Thanks for your reply! I have not found a solution to this so far... I tried tinkering with the code based on your insight and I couldn't get a better result that the repeated menu items in each option. If I removed the simple_menu tag from within the loop for each node, all the options went blank like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amita_0-1690374052018.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/95525i9426A2CE8FD212CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amita_0-1690374052018.png" alt="Amita_0-1690374052018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way that I have managed to get the menu items to populate (albeit all of them every time) was to have simple_menu included in each node... So I'm still stuck 🤪&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:26:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-creating-a-dropdown-menu-module/m-p/825323#M35152</guid>
      <dc:creator>Amita</dc:creator>
      <dc:date>2023-07-26T12:26:50Z</dc:date>
    </item>
  </channel>
</rss>

