<?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: New to HubL  - Can't seem to get the Content from Content.name in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212367#M9023</link>
    <description>&lt;P&gt;Thanks Stephanie, Anton.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strangley if I use&amp;nbsp;&lt;STRONG&gt;page_meta.name&lt;/STRONG&gt; instead of &lt;STRONG&gt;content.name&lt;/STRONG&gt; the "if" statement works.&amp;nbsp; &amp;nbsp; But they both output the same when using {{ x&amp;nbsp; }}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the efficency as well Stephanie, the customer has written a long paragraph to use as the html text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 16:18:19 GMT</pubDate>
    <dc:creator>Ali_Knox</dc:creator>
    <dc:date>2018-10-18T16:18:19Z</dc:date>
    <item>
      <title>New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212305#M9011</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Hubl and can't seem to get the content from content.name for an if statement.&amp;nbsp; I've tried numerous ways to no avail.&amp;nbsp; Below is as example of what I'm trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be apprecaited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;{{ content.name }}&amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% if content.name == 'Blog' %}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2 class="sub_heading"&amp;gt;Latest blog insights from Node4.&amp;lt;/h2&amp;gt;&lt;BR /&gt;{% elif content.name == 'Events' %}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2 class="sub_heading"&amp;gt;Latest Event insights from Node4.&amp;lt;/h2&amp;gt;&lt;BR /&gt;{% elif content.name == 'News' %}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;h2 class="sub_heading"&amp;gt;Latest News from Node4.&amp;lt;/h2&amp;gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 12:23:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212305#M9011</guid>
      <dc:creator>Ali_Knox</dc:creator>
      <dc:date>2018-10-18T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212309#M9012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73416"&gt;@Ali_Knox&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as far as I understand your code, you want to change the "dynamicly". For my knowing this can be only achieved by using javascript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Hubl you'll need some widgets. You can add them on the right sidebar while "programming" a module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code will work if you add a "choice field".&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you'll have to change the naming/wording.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{{content.name}}&lt;/PRE&gt;&lt;P&gt;function availible.&lt;/P&gt;&lt;P&gt;You can add a (Rich-)text widget to your module and name it "Name". Then the code would be&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{{module.name}}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Then you add the choice field, name it "choice" and set up your 3 options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code snippet would be&lt;/P&gt;&lt;PRE&gt;{% if module.choice == 'Blog' %}
                  &amp;lt;h2 class="sub_heading"&amp;gt;Latest blog insights from Node4.&amp;lt;/h2&amp;gt;
{% elif module.choice == 'Events' %}
                  &amp;lt;h2 class="sub_heading"&amp;gt;Latest Event insights from Node4.&amp;lt;/h2&amp;gt;
{% elif module.choice == 'News' %}
                   &amp;lt;h2 class="sub_heading"&amp;gt;Latest News from Node4.&amp;lt;/h2&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/98485/2000px-Ok_sign_font_awesome.png" border="0" width="30" height="30" /&gt;&lt;/TD&gt;&lt;TD&gt;Did my post help answer your query? Help the Community by &lt;STRONG&gt;marking it as a solution&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 12:48:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212309#M9012</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-10-18T12:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212313#M9013</link>
      <description>&lt;P&gt;Anton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you help.&amp;nbsp; I'm probably not being clear nor using the correct terminology.&amp;nbsp; At the moment theres a module that I have inheritted.&amp;nbsp; On the listing templates in Hubspot, they using the same background cover as a global module with {{ content.name }} included over the background image.&amp;nbsp; This content.name is outputting Blog, Event or News as a Title dependant which area you go into.&amp;nbsp; These are brough through from the settings &amp;gt; Blog section and uses the field Header.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wanted to do was as the page is shown, have some subtext underneath that is dependant on the content.name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I way off the pace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 13:03:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212313#M9013</guid>
      <dc:creator>Ali_Knox</dc:creator>
      <dc:date>2018-10-18T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212354#M9018</link>
      <description>&lt;P&gt;Anton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you help.&amp;nbsp; I'm probably not being clear nor using the correct terminology.&amp;nbsp; At the moment theres a module that I have inheritted.&amp;nbsp; On the listing templates in Hubspot, they using the same background cover as a global module with {{ content.name }} included over the background image.&amp;nbsp; This content.name is outputting Blog, Event or News as a Title dependant which area you go into.&amp;nbsp; These are brough through from the settings &amp;gt; Blog section and uses the field Header.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wanted to do was as the page is shown, have some subtext underneath that is dependant on the content.name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I way off the pace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:57:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212354#M9018</guid>
      <dc:creator>Ali_Knox</dc:creator>
      <dc:date>2018-10-18T14:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212363#M9020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73416"&gt;@Ali_Knox&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you want to change it automaticly or is it a possibility to change it by hand?&lt;/P&gt;&lt;P&gt;By hand would be much easier and faster way.&lt;/P&gt;&lt;P&gt;This would be the method I've mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I've got an idea how to manage the the "automatic" way. But I need some time to test it.&lt;/P&gt;&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;have an idea how to acomplish this in a better/faster way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:48:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212363#M9020</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-10-18T15:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212366#M9022</link>
      <description>&lt;P&gt;Hi Ali and Anton,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe try this logic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;h1&amp;gt;{{ content.name }}&amp;lt;/h1&amp;gt;

{% if 'Blog' in content.name %}
   &amp;lt;h2 class="sub_heading"&amp;gt;Latest blog insights from Node4.&amp;lt;/h2&amp;gt;
{% elif 'Events' in content.name %}
   &amp;lt;h2 class="sub_heading"&amp;gt;Latest Event insights from Node4.&amp;lt;/h2&amp;gt;
{% elif 'News'' in content.name %}
   &amp;lt;h2 class="sub_heading"&amp;gt;Latest News from Node4.&amp;lt;/h2&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not 100% sure why yor original condition doesn't work, but this seemed to work in my tests.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: the below should also be more efficient if the title is the word you're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;h1&amp;gt;{{ content.name }}&amp;lt;/h1&amp;gt;
&amp;lt;h2 class="sub_heading"&amp;gt;Latest {{ content.name }} insights from Node4.&amp;lt;/h2&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the lower filter to change it to lower case if needed:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{{ content.name|lower }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 16:06:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212366#M9022</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-10-18T16:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212367#M9023</link>
      <description>&lt;P&gt;Thanks Stephanie, Anton.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strangley if I use&amp;nbsp;&lt;STRONG&gt;page_meta.name&lt;/STRONG&gt; instead of &lt;STRONG&gt;content.name&lt;/STRONG&gt; the "if" statement works.&amp;nbsp; &amp;nbsp; But they both output the same when using {{ x&amp;nbsp; }}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the efficency as well Stephanie, the customer has written a long paragraph to use as the html text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 16:18:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/212367#M9023</guid>
      <dc:creator>Ali_Knox</dc:creator>
      <dc:date>2018-10-18T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: New to HubL  - Can't seem to get the Content from Content.name</title>
      <link>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/590253#M27700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73416"&gt;@Ali_Knox&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;visually the output looks the same but&amp;nbsp;by default {{content.name}} output is wrapped with a span element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;span id="hs_cos_wrapper_name" class="hs_cos_wrapper hs_cos_wrapper_meta_field hs_cos_wrapper_type_text" style="" data-s-cos-general-type="meta_field" data-hs-cos-type="text"&amp;gt;CONTENT NAME VALUE&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{{page_meta.name}} instead is not wrapped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/variables" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/hubl/variables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata 2022-03-08 alle 10.27.35.jpg" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/61156iE33FEEAA66067358/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2022-03-08 alle 10.27.35.jpg" alt="Schermata 2022-03-08 alle 10.27.35.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Giorgio&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 09:42:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/New-to-HubL-Can-t-seem-to-get-the-Content-from-Content-name/m-p/590253#M27700</guid>
      <dc:creator>GiorgioM</dc:creator>
      <dc:date>2022-03-08T09:42:05Z</dc:date>
    </item>
  </channel>
</rss>

