<?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 HUBL: For loop item within a variable call issue {{ row.item }} in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210730#M8770</link>
    <description>&lt;P&gt;Is there a way to include a&amp;nbsp;for loop item within another variable call? For example, below I have a for loop, looping over the rows in a HubDB table. Inside, I have another for loop, looping over items in an array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside that, there's a paragraph, where I'd like to echo out the row's value for the column labeled "column_1" (example for during the first iteration of the loop).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, {{ row.item }} is looking for a column called "item" instead of pulling "item" from the for loop. How can I fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set exampleArray = ['column_1', 'column_2'] %}

{% for row in hubdb_table_rows(dynamic_page_hubdb_table_id) %}
    {% for item in exampleArray %}
        &amp;lt;p&amp;gt;{{ item }}: {{ row.item }}&amp;lt;/p&amp;gt;
    {% endfor %}
{% endfor %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Oct 2018 17:22:06 GMT</pubDate>
    <dc:creator>kaitlyn</dc:creator>
    <dc:date>2018-10-08T17:22:06Z</dc:date>
    <item>
      <title>HUBL: For loop item within a variable call issue {{ row.item }}</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210730#M8770</link>
      <description>&lt;P&gt;Is there a way to include a&amp;nbsp;for loop item within another variable call? For example, below I have a for loop, looping over the rows in a HubDB table. Inside, I have another for loop, looping over items in an array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside that, there's a paragraph, where I'd like to echo out the row's value for the column labeled "column_1" (example for during the first iteration of the loop).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, {{ row.item }} is looking for a column called "item" instead of pulling "item" from the for loop. How can I fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set exampleArray = ['column_1', 'column_2'] %}

{% for row in hubdb_table_rows(dynamic_page_hubdb_table_id) %}
    {% for item in exampleArray %}
        &amp;lt;p&amp;gt;{{ item }}: {{ row.item }}&amp;lt;/p&amp;gt;
    {% endfor %}
{% endfor %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 17:22:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210730#M8770</guid>
      <dc:creator>kaitlyn</dc:creator>
      <dc:date>2018-10-08T17:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: HUBL: For loop item within a variable call issue {{ row.item }}</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210740#M8772</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/64731"&gt;@kaitlyn&lt;/a&gt;&amp;nbsp;- I haven't tested this but can you try row[item]&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 18:43:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210740#M8772</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-10-08T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: HUBL: For loop item within a variable call issue {{ row.item }}</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210742#M8773</link>
      <description>&lt;P&gt;That worked, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 18:45:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210742#M8773</guid>
      <dc:creator>kaitlyn</dc:creator>
      <dc:date>2018-10-08T18:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: HUBL: For loop item within a variable call issue {{ row.item }}</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210743#M8774</link>
      <description>&lt;P&gt;lucky guess &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 18:45:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HUBL-For-loop-item-within-a-variable-call-issue-row-item/m-p/210743#M8774</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-10-08T18:45:48Z</dc:date>
    </item>
  </channel>
</rss>

