<?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: Excluding a blog topic from a Topics list in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/70477#M4100</link>
    <description>&lt;P&gt;A simple hubl&amp;nbsp;solution that works, just add the following to your anchor tag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if topic.name == 'featured' %}style="display: none;"{% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no need for:&lt;/P&gt;&lt;PRE&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;% if &lt;SPAN class="token string"&gt;'Featured'&lt;/SPAN&gt; in content.topic_list|&lt;SPAN class="token function"&gt;map&lt;/SPAN&gt;(&lt;SPAN class="token string"&gt;'name'&lt;/SPAN&gt;) %&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class="grammarly-disable-indicator"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="grammarly-disable-indicator"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 13 Dec 2017 15:39:33 GMT</pubDate>
    <dc:creator>eparker</dc:creator>
    <dc:date>2017-12-13T15:39:33Z</dc:date>
    <item>
      <title>Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7382#M761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a topic called 'Featured' to display a featured post at the top of the blog listing page and would like to keep the topic 'Featured' from displaying in the topics list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://designers.hubspot.com/docs/tutorials/how-to-check-for-a-particular-topic-on-a-blog-post" target="_self"&gt;This page&lt;/A&gt; has something close. It shows how to check for a particular&amp;nbsp;topic, but doesn't include the markup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;% if &lt;SPAN class="token string"&gt;'Featured'&lt;/SPAN&gt; in content.topic_list|&lt;SPAN class="token function"&gt;map&lt;/SPAN&gt;(&lt;SPAN class="token string"&gt;'name'&lt;/SPAN&gt;) %&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="token selector"&gt;Markup to print, if the topic "Featured" is set as a post's topic.
    &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;% endif %&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Anyone know of some markup I could use to tell the topic 'Featured" NOT print?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 21:36:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7382#M761</guid>
      <dc:creator>dbarbara</dc:creator>
      <dc:date>2017-02-14T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7407#M767</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1567"&gt;@dbarbara&lt;/a&gt;&amp;nbsp;it's the same login as in that page in reverse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; {% if 'Featured' in content.topic_list|map('name') %}
        Markup to print, if the topic "Featured" is set as a post's topic.
    {% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;does something if the condition is true&lt;/P&gt;&lt;PRE&gt; {% unless 'Featured' in content.topic_list|map('name') %}
        Markup to print, if the topic "Featured" is set as a post's topic.
    {% endunless %}&lt;/PRE&gt;&lt;P&gt;does something if the condition is not true.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Place an "unless" statement inside of your {% for content in contents %} statement that checks for the topic inside&amp;nbsp;of the content.topic_list and it shouldn't display the post if it has the "featured" topic assigned to it. You should be aware though that it will not show ANY posts containing the "featured" topic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 03:15:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7407#M767</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-02-15T03:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7459#M776</link>
      <description>&lt;P&gt;Am just trying to hide the Featured topic in the Topics List module, not the actual posts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to hide the "Featured" topic somewhere in here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="span12 widget-span widget-type-raw_jinja blog-topics" style="" data-widget-type="raw_jinja" data-x="0" data-w="12"&amp;gt;
{% set my_topics = blog_topics('default', &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; %}

&amp;lt;ul&amp;gt;
&amp;lt;li class="tab-all" class="active"&amp;gt;
&amp;lt;a href="{{ group.absolute_url }}"&amp;gt;All&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% for item in my_topics %}
&amp;lt;li&amp;gt;&amp;lt;a href="{{ group.absolute_url }}/topic/{{item.slug}}"&amp;gt;{{ item }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt;&amp;lt;!--end widget-span --&amp;gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;And also here:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="span12 widget-span widget-type-raw_jinja blog-topics-buttons" style="" data-widget-type="raw_jinja" data-x="0" data-w="12"&amp;gt;
{% set my_topics = blog_topics('default', &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; %}
&amp;lt;h3 style="text-align:center; margin: 0"&amp;gt;Search By Topic&amp;lt;/h3&amp;gt;
&amp;lt;ul&amp;gt;
{% for item in my_topics %}
&amp;lt;li&amp;gt;&amp;lt;a href="{{ group.absolute_url }}/topic/{{item.slug}}"&amp;gt;{{ item }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!--end widget-span &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 17:36:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7459#M776</guid>
      <dc:creator>dbarbara</dc:creator>
      <dc:date>2017-02-15T17:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7463#M779</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;&lt;PRE&gt;{% for content in contents %}
    {% for topic in content.topic_list %}
        {% unless 'Featured' in content.topic_list|map('name') %}
        
              &amp;lt;span class="topic-link"&amp;gt;{{ topic.name }}&amp;lt;/span&amp;gt;

        {% endunless %}
    {% endfor %}
{% endfor %}&lt;/PRE&gt;&lt;P&gt;In your listing markup you should be looping through the topics of each blog to display the topics per blog on the listing page. Use this unless condition inside that loop and it should omit the "featured" topic.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 17:53:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7463#M779</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-02-15T17:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7564#M788</link>
      <description>&lt;P&gt;Are you refering to the post filter that's just the list of topics and post count and links to the topic page? If so, it may be easier to just use CSS to hide it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find the id of the module, in my case it's hs_cos_wrapper_blog_topic_cloud, and the url of the featured topic page, for example: &lt;A href="http://www.example.com/topic/featured" target="_blank"&gt;http://www.example.com/topic/featured&lt;/A&gt;. modify the following with your module id and the topic url and add to your stylesheet.&lt;/P&gt;&lt;PRE&gt;#hs_cos_wrapper_blog_topic_cloud .widget-module ul li a[href="http://www.example.com/topic/featured"] {
display:none;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:00:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/7564#M788</guid>
      <dc:creator>ndwilliams3</dc:creator>
      <dc:date>2017-02-16T18:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/8079#M831</link>
      <description>&lt;P&gt;Great idea! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 13:42:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/8079#M831</guid>
      <dc:creator>dbarbara</dc:creator>
      <dc:date>2017-02-23T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/70477#M4100</link>
      <description>&lt;P&gt;A simple hubl&amp;nbsp;solution that works, just add the following to your anchor tag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if topic.name == 'featured' %}style="display: none;"{% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no need for:&lt;/P&gt;&lt;PRE&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;% if &lt;SPAN class="token string"&gt;'Featured'&lt;/SPAN&gt; in content.topic_list|&lt;SPAN class="token function"&gt;map&lt;/SPAN&gt;(&lt;SPAN class="token string"&gt;'name'&lt;/SPAN&gt;) %&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV class="grammarly-disable-indicator"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="grammarly-disable-indicator"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Dec 2017 15:39:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/70477#M4100</guid>
      <dc:creator>eparker</dc:creator>
      <dc:date>2017-12-13T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/185967#M5625</link>
      <description>&lt;P&gt;{% unless 'topic goes here' in content.topic_list|map('name') %}&lt;/P&gt;&lt;P&gt;content markup goes here&lt;/P&gt;&lt;P&gt;{% endunless %}&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 19:45:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/185967#M5625</guid>
      <dc:creator>cwilbanks</dc:creator>
      <dc:date>2018-04-13T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/212507#M9059</link>
      <description>&lt;P&gt;or simply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;% if !(&lt;SPAN class="token string"&gt;'Featured'&lt;/SPAN&gt; in content.topic_list|&lt;SPAN class="token function"&gt;map&lt;/SPAN&gt;(&lt;SPAN class="token string"&gt;'name')&lt;/SPAN&gt;) %&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="token selector"&gt;Markup to print, if the topic "Featured" is set as a post's topic.
    &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;% endif %&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 12:33:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/212507#M9059</guid>
      <dc:creator>benvanlooy</dc:creator>
      <dc:date>2018-10-19T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a blog topic from a Topics list</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/259325#M11465</link>
      <description>&lt;P&gt;Best to use HubL for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply exclude the tag from your loop by either using &lt;EM&gt;unless&amp;nbsp;&lt;/EM&gt;or &lt;EM&gt;if !=.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if content.topic_list %}
  &amp;lt;p id="hubspot-topic_data"&amp;gt;
      {% for topic in content.topic_list %}
          {% unless topic.name == "Featured" %}
            &amp;lt;a class="topic-link" href="{{ blog_tag_url(group.id, topic.slug) }}"&amp;gt;{{ topic.name }}&amp;lt;/a&amp;gt;{% if not loop.last %},{% endif %}
          {% endunless %}
      {% endfor %}
  &amp;lt;/p&amp;gt;
{% endif %}&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Mar 2019 12:58:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Excluding-a-blog-topic-from-a-Topics-list/m-p/259325#M11465</guid>
      <dc:creator>anders_grove</dc:creator>
      <dc:date>2019-03-15T12:58:12Z</dc:date>
    </item>
  </channel>
</rss>

