<?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: HubL Tag for Navigation-Label (Text) in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361147#M18020</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out this solution &lt;A href="https://community.hubspot.com/t5/CMS-Development/Custom-menu-markup-for-Advanced-Menu-in-Coded-Template/td-p/285558" target="_blank" rel="noopener"&gt;here!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expanding on this you can get the individual label by using something like this:&lt;/P&gt;
&lt;PRE&gt;{{ menu(&lt;STRONG&gt;&lt;EM&gt;*your menus id*&lt;/EM&gt;&lt;/STRONG&gt;).children[0].label }}&lt;/PRE&gt;
&lt;P&gt;This will get the first (becasue they're 0 based numbering) menu item's label!&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 15:32:06 GMT</pubDate>
    <dc:creator>Kevin-C</dc:creator>
    <dc:date>2020-08-11T15:32:06Z</dc:date>
    <item>
      <title>HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361055#M18009</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to show the name i gave the page in the main-navigation on the page with a hubl-tag?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text i want to show:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="navigation.jpg" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/30170i80CD58F9F88F2EDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="navigation.jpg" alt="navigation.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 12:03:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361055#M18009</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2020-08-11T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361147#M18020</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out this solution &lt;A href="https://community.hubspot.com/t5/CMS-Development/Custom-menu-markup-for-Advanced-Menu-in-Coded-Template/td-p/285558" target="_blank" rel="noopener"&gt;here!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expanding on this you can get the individual label by using something like this:&lt;/P&gt;
&lt;PRE&gt;{{ menu(&lt;STRONG&gt;&lt;EM&gt;*your menus id*&lt;/EM&gt;&lt;/STRONG&gt;).children[0].label }}&lt;/PRE&gt;
&lt;P&gt;This will get the first (becasue they're 0 based numbering) menu item's label!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:32:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361147#M18020</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2020-08-11T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361342#M18041</link>
      <description>&lt;P&gt;Hey Kevin, thank you so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i use your code, i always get the first menu item, is this correct? I always need the navigation "label" of the active menu item. Is this even possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help and best regards.&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;Would be glad for some help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 07:44:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361342#M18041</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2020-08-12T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361465#M18057</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see what you're doing now.&lt;/P&gt;
&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;PRE&gt;{% set node = menu(&lt;STRONG&gt;*menuId*&lt;/STRONG&gt;) %}
{% for child in node.children %} {# loop through the menu #}
  {% if child.activeNode == true %} {# test if the current menu child is active #}
    {% set active_node = child.label %} {# declare a variable that we can use and test against later #}
  {% endif %}&lt;BR /&gt;{% endfor %}
		
{{ active_node }} {# display the label #}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I am unable to test this, so I hope its straight forward enough!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:00:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/361465#M18057</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2020-08-12T14:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/362976#M18186</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the menu ID and tried to use your script the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set node = menu(32047489403) %}
{% for child in node.children %} {# loop through the menu #}
  &amp;lt;span&amp;gt;Found nodes&amp;lt;/span&amp;gt;
  {% if child.activeNode == true %} {# test if the current menu child is active #}
    &amp;lt;span&amp;gt;Found active node&amp;lt;/span&amp;gt;
    {% set active_node = child.label %} {# declare a variable that we can use and test against later #}
  {% endif %}
{% endfor %}
		
{{ active_node }} {# display the label #}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The message "found nodes" i get on almost every page. Its strange that the number of nodes is not always the same. The message "found active node" i just get on some pages which looks randomy but i could never get the the output of the "active_node" label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help so far. If you have any idea what could be wrong, i would be glad. Im maybe looking into another solution with a a text-field for every page where the name of the page has to be inserted manually again and i get the value from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day and best regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 06:19:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/362976#M18186</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2020-08-19T06:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/364379#M18275</link>
      <description>&lt;P&gt;This is not working in my case. I wrote an answer last week about it. Can maybe Hubspot get into this? I would love to get this done soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much and best regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 08:39:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/364379#M18275</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2020-08-25T08:39:48Z</dc:date>
    </item>
    <item>
      <title>evinRe: HubL Tag for Navigation-Label (Text)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/366664#M18431</link>
      <description>&lt;P&gt;Hey Kevin, your solution did not work in my case. Did you check this in one of your projects?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 12:46:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubL-Tag-for-Navigation-Label-Text/m-p/366664#M18431</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2020-09-02T12:46:31Z</dc:date>
    </item>
  </channel>
</rss>

