<?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 NOINDEX Dynamic Pages Using Filter on Custom Object Properties in Blog, Website &amp; Page Publishing</title>
    <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1104586#M14674</link>
    <description>&lt;P&gt;I have a product listing page that leverages dynamic pages with custom objects. The query runs a filter to only select products with an in_stock value of TRUE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that the products that are not in stock are still getting indexed and are returned in my site search results and appear with "NULL" page titles.&lt;/P&gt;&lt;P&gt;Is there a way to dynamically block the products for pages that are not in stock from being indexed?&lt;/P&gt;&lt;P&gt;I know that I could explicitly block the pages from being indexed in the robots.txt config, but I'd like to make this dynamic since the in stock values will change over time.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 00:41:15 GMT</pubDate>
    <dc:creator>hubrob</dc:creator>
    <dc:date>2025-02-06T00:41:15Z</dc:date>
    <item>
      <title>NOINDEX Dynamic Pages Using Filter on Custom Object Properties</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1104586#M14674</link>
      <description>&lt;P&gt;I have a product listing page that leverages dynamic pages with custom objects. The query runs a filter to only select products with an in_stock value of TRUE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that the products that are not in stock are still getting indexed and are returned in my site search results and appear with "NULL" page titles.&lt;/P&gt;&lt;P&gt;Is there a way to dynamically block the products for pages that are not in stock from being indexed?&lt;/P&gt;&lt;P&gt;I know that I could explicitly block the pages from being indexed in the robots.txt config, but I'd like to make this dynamic since the in stock values will change over time.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 00:41:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1104586#M14674</guid>
      <dc:creator>hubrob</dc:creator>
      <dc:date>2025-02-06T00:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: NOINDEX Dynamic Pages Using Filter on Custom Object Properties</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1105052#M14682</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/895120"&gt;@hubrob&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’d like to invite some of our experts to join the conversation and get their input on this question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;&lt;/SPAN&gt;, &lt;STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20405"&gt;@himanshurauthan&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73173"&gt;@franksteiner79&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Feel free to jump in with any suggestions or ideas you might have—everyone’s take on this would be really helpful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 17:44:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1105052#M14682</guid>
      <dc:creator>DianaGomez</dc:creator>
      <dc:date>2025-02-06T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: NOINDEX Dynamic Pages Using Filter on Custom Object Properties</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1106200#M14692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/895120"&gt;@hubrob&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try adding some conditional logic in your page template to show the noindex meta tag when in_stock value is false.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if in_stock == false %}

  {% require_head %}
    &amp;lt;meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /&amp;gt;
  {% end_require_head %}

{% endif %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;require_head&lt;/STRONG&gt; tag will make sure that it is added to the &amp;lt;head&amp;gt; of your page, so you can essentially place that wherever you are checking the stock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 23:29:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/NOINDEX-Dynamic-Pages-Using-Filter-on-Custom-Object-Properties/m-p/1106200#M14692</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-02-08T23:29:58Z</dc:date>
    </item>
  </channel>
</rss>

