<?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: Filter HubDB by row using Hubl in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184846#M5499</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13987"&gt;@josephLayden&lt;/a&gt;&amp;nbsp;does this solution from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19200"&gt;@TRooInbound&lt;/a&gt;&amp;nbsp;help?&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/HubDB-Filtering-based-on-dynamic-page-data/m-p/36630" target="_blank"&gt;https://community.hubspot.com/t5/Content-Design-Questions/HubDB-Filtering-based-on-dynamic-page-data/m-p/36630&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 11:18:42 GMT</pubDate>
    <dc:creator>roisinkirby</dc:creator>
    <dc:date>2018-04-06T11:18:42Z</dc:date>
    <item>
      <title>Filter HubDB by row using Hubl</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184763#M5484</link>
      <description>&lt;P&gt;I am trying to create a listing page that provides a links by state.&amp;nbsp; The example below, would show all press releases from California tagged 'CA' in the row 'State'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set table = hubdb_table_rows(679969, queryparam) %}

{% if table == [] %}
&amp;lt;p class='align-center'&amp;gt;Sorry, no listings found for that Search. Try changing your fiter and search again.&amp;lt;/p&amp;gt;
{% else %}

{% if row["state"] in table == "CA" %}

&amp;lt;div class="container row-fluid"&amp;gt;
  &amp;lt;div class="state-post-listing"&amp;gt;
    &amp;lt;ul&amp;gt;	
      &amp;lt;li&amp;gt;&amp;lt;a href="{{ row['embed'] }}"&amp;gt;{{ row["date"]|datetimeformat('%A %e %B %Y') }}&amp;amp;nbsp;|&amp;amp;nbsp;{{ row['name'] }}&amp;amp;nbsp;|&amp;amp;nbsp;{{ row['state'] }}&amp;lt;a/&amp;gt;&amp;lt;/li&amp;gt;
    &amp;lt;/ul&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

{% endif %}


{% endif %}


&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 20:13:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184763#M5484</guid>
      <dc:creator>josephLayden</dc:creator>
      <dc:date>2018-04-05T20:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter HubDB by row using Hubl</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184846#M5499</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13987"&gt;@josephLayden&lt;/a&gt;&amp;nbsp;does this solution from&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19200"&gt;@TRooInbound&lt;/a&gt;&amp;nbsp;help?&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/HubDB-Filtering-based-on-dynamic-page-data/m-p/36630" target="_blank"&gt;https://community.hubspot.com/t5/Content-Design-Questions/HubDB-Filtering-based-on-dynamic-page-data/m-p/36630&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 11:18:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184846#M5499</guid>
      <dc:creator>roisinkirby</dc:creator>
      <dc:date>2018-04-06T11:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter HubDB by row using Hubl</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184942#M5520</link>
      <description>&lt;P&gt;I did not have the correct logic.&amp;nbsp; I fixed the problem by adding 'state=CA' where state is the name/ID of the row and CA is the value i am sorting for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set table = hubdb_table_rows(679969, 'state=CA') %}

{% if table == [] %}
&amp;lt;p class='align-center'&amp;gt;Sorry, no listings found for that Search. Try changing your fiter and search again.&amp;lt;/p&amp;gt;
{% else %}

{% for row in table %}

&amp;lt;div class="container row-fluid"&amp;gt;
  &amp;lt;div class="state-post-listing"&amp;gt;
    &amp;lt;ul&amp;gt;	
      &amp;lt;li&amp;gt;&amp;lt;a href="{{ row['embed'] }}"&amp;gt;{{ row['date'] }} | {{ row['name'] }} | {{ row['state'] }}&amp;lt;a/&amp;gt;&amp;lt;/li&amp;gt;
    &amp;lt;/ul&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

{% endfor %}
{% endif %}&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2018 17:03:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Filter-HubDB-by-row-using-Hubl/m-p/184942#M5520</guid>
      <dc:creator>josephLayden</dc:creator>
      <dc:date>2018-04-06T17:03:31Z</dc:date>
    </item>
  </channel>
</rss>

