<?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: Create HubDB dynamic page view in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424284#M22133</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt; For dynamic pages you do not set the IDs yourself in the template, this is set in the settings of the page using the template. Your template would only have the following to differentiate from overview and row :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if dynamic_page_hubdb_row %}        
  &amp;lt;!-- Your row code here --&amp;gt;                
{% elif dynamic_page_hubdb_table_id %}
  {% for row in hubdb_table_rows(dynamic_page_hubdb_table_id) %}
    &amp;lt;!-- Your overview code here --&amp;gt;
  {% endfor %}
{% endif %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The page would need to be &lt;STRONG&gt;published&lt;/STRONG&gt; with at least one row in your template for you to be able to view the row code by going to that row's designated URL. If you're wanting to view the template's row code &lt;EM&gt;without&lt;/EM&gt; publishing Hubspot doesn't really have a way to do that. Only thing you could do is first build like your creating a static template pulling in a single row's information and then add the dynamic if statement and row for loop in before publishing. So using only the following :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set row = hubdb_table_row(&amp;lt;tableId or name&amp;gt;, &amp;lt;rowId&amp;gt;) %}
&amp;lt;!-- followed by your row page code --&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 03:15:53 GMT</pubDate>
    <dc:creator>alyssamwilie</dc:creator>
    <dc:date>2021-04-02T03:15:53Z</dc:date>
    <item>
      <title>Create HubDB dynamic page view</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/423742#M22100</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to create a template for a HubDB (overview) and the dynamic pages out of the HubDB. So how can i create a HubL Template for the HubDB dynamic page (row) view?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following code. The overview i get with "elif TableID" is working. Bu i cannot make it work that the dynamic page-urls are shown with this HubL-Template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set tableId = 'team' %}

{% if sdfsdfds %}
&amp;lt;p&amp;gt;Here should the dynamic page content belong.&amp;lt;/p&amp;gt;  
{% elif tableId %}  
&amp;lt;p&amp;gt;Here comes the hub-db overview.&amp;lt;/p&amp;gt;
{% endif %}  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 13:09:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/423742#M22100</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-03-31T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create HubDB dynamic page view</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424042#M22114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to tag some of our experts on this -&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76319"&gt;@DanielSanchez&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;do you have any thoughts to share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;on this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Tiphaine&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 11:08:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424042#M22114</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2021-04-01T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create HubDB dynamic page view</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424068#M22116</link>
      <description>&lt;P&gt;Hello everyone, my script is based on the following tutorial:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/guides/building-dynamic-pages-with-hubdb" target="_blank"&gt;https://developers.hubspot.com/docs/cms/guides/building-dynamic-pages-with-hubdb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create an overview page with all the team-members and specific pages for each team-member. How can i do that? In the tutorial it is described how to set the the variable for "dynamic_page_hubdb_table_id":&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{% set dynamic_page_hubdb_table_id = &amp;lt;YOUR_HUBDB_TABLE_ID&amp;gt; %}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But how can i set the variable for "dynamic_page_hubdb_row" correct, so that it works in my example?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank you so much for your help!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 13:00:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424068#M22116</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-04-01T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create HubDB dynamic page view</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424284#M22133</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt; For dynamic pages you do not set the IDs yourself in the template, this is set in the settings of the page using the template. Your template would only have the following to differentiate from overview and row :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if dynamic_page_hubdb_row %}        
  &amp;lt;!-- Your row code here --&amp;gt;                
{% elif dynamic_page_hubdb_table_id %}
  {% for row in hubdb_table_rows(dynamic_page_hubdb_table_id) %}
    &amp;lt;!-- Your overview code here --&amp;gt;
  {% endfor %}
{% endif %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The page would need to be &lt;STRONG&gt;published&lt;/STRONG&gt; with at least one row in your template for you to be able to view the row code by going to that row's designated URL. If you're wanting to view the template's row code &lt;EM&gt;without&lt;/EM&gt; publishing Hubspot doesn't really have a way to do that. Only thing you could do is first build like your creating a static template pulling in a single row's information and then add the dynamic if statement and row for loop in before publishing. So using only the following :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set row = hubdb_table_row(&amp;lt;tableId or name&amp;gt;, &amp;lt;rowId&amp;gt;) %}
&amp;lt;!-- followed by your row page code --&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 03:15:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Create-HubDB-dynamic-page-view/m-p/424284#M22133</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2021-04-02T03:15:53Z</dc:date>
    </item>
  </channel>
</rss>

