<?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: Hub DB Dynamic pages from selected rows in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027727#M40301</link>
    <description>&lt;P&gt;Yes, I would do the same trick of `.live_status` on the listing, to disinclude the "drafts".&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2024 16:28:15 GMT</pubDate>
    <dc:creator>SimonPadbury</dc:creator>
    <dc:date>2024-08-15T16:28:15Z</dc:date>
    <item>
      <title>Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1026428#M40267</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there dynamic pages publish some HubDB rows and not others? E.g. for handling drafts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I thought might possibly work, but doesn't:&lt;BR /&gt;&lt;BR /&gt;HubDB column `.live_status` checkbox for status.&lt;BR /&gt;&lt;BR /&gt;Then in the template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;{% if dynamic_page_hubdb_row.live_status %}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- Yes, dynamic page for this row --&amp;gt;&lt;/P&gt;&lt;P&gt;{% elif dynamic_page_hubdb_table_id %}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- Index stuff --&amp;gt;&lt;/P&gt;&lt;P&gt;{% endif %}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That doesn't work, because the dynamic page is initiated before the template is picked. So, they are all in the sitemap. (But for the unchecked pages, it repeats the index.)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:33:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1026428#M40267</guid>
      <dc:creator>SimonPadbury</dc:creator>
      <dc:date>2024-08-13T15:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1026538#M40268</link>
      <description>&lt;P&gt;Is it specifically the sitemap you're concerned about or would a noindex tag do the job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt; | &lt;A href="https://www.linkedin.com/in/barrygrennan" target="_blank" rel="nofollow noopener noreferrer"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 18:35:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1026538#M40268</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2024-08-13T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1026813#M40271</link>
      <description>&lt;P&gt;I was wondering whether there was any way for those draft, or, `.live_status` unchecked pages to not be created at all. I want to use this for controling drafts, and for taking down expired dynamic content.&amp;nbsp;E.g. for periodically adding and taking down products from a catalog. Or e.g. for putting up event pages in a calendar, and taking them down when passed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can auto schedule publication and unpublication of webpages. I wanted to be able to do the same kind of thing with HubDB dynamic pages -- &lt;EM&gt;because I also want an index feed&lt;/EM&gt;. Though I am happy to check/uncheck manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just using the sitemap to verify that these 'draft' dynmic pages were actually being generated.&amp;nbsp;&lt;SPAN&gt; Meaning I might eventually have dozens of identical webpages out there (being the `.live_status` unchecked pages all with the Index instead of the row content).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good idea -- I can make those unwanted pages get a noindex tag. If I can't have them be not generated at all, then noindex will have to suffice. Not ideal, but it'll do if there's no other way.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 08:08:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1026813#M40271</guid>
      <dc:creator>SimonPadbury</dc:creator>
      <dc:date>2024-08-14T08:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027440#M40284</link>
      <description>&lt;P&gt;I don't think hubDB has that feature yet. It would be great if it does, though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&amp;nbsp;mentioned, the&amp;nbsp;only workaround is to add a noindex based on a column value.&amp;nbsp;&lt;SPAN&gt;Just remember to exclude all "draft" items from the listing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abraham Ernesto&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 06:22:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027440#M40284</guid>
      <dc:creator>GiantFocal</dc:creator>
      <dc:date>2024-08-15T06:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027725#M40300</link>
      <description>&lt;P&gt;Another idea occurs to me: I could have the HubDB dynamic page generated as a &lt;EM&gt;landing page&lt;/EM&gt;.&amp;nbsp;HubSpot does not auto-include landing pages in the sitemap XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(i.e. what is called a landing page in HubSpot's parlance, not what Google Analytics calls a landing page.)&lt;BR /&gt;&lt;BR /&gt;Plus, still have a noindex meta tag.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 16:25:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027725#M40300</guid>
      <dc:creator>SimonPadbury</dc:creator>
      <dc:date>2024-08-15T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027727#M40301</link>
      <description>&lt;P&gt;Yes, I would do the same trick of `.live_status` on the listing, to disinclude the "drafts".&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 16:28:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1027727#M40301</guid>
      <dc:creator>SimonPadbury</dc:creator>
      <dc:date>2024-08-15T16:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1028209#M40311</link>
      <description>&lt;P&gt;Well yes, for hiding items from a catelog you could create a boolean column "is_live" and in your catelog loop only output items where "is_live" is true.&lt;BR /&gt;For events you'd be looking for it to only show events where the unix timestamp is greater than the current date.&lt;BR /&gt;&lt;BR /&gt;I'll try to update this post in a few minutes with some examples.&lt;BR /&gt;&lt;BR /&gt;But on the sitemap front, yes you're right, landing pages don't auto add, that seems like a good idea.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a demo of an event listing I did for a client.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set get_current_date =  unixtimestamp( local_dt ) %}
{% set queryFuture = "&amp;amp;my_event_date__gt="+get_current_date %}
{% set events = hubdb_table_rows(you_hubdb_table,"&amp;amp;orderBy=date" + queryFuture ) %}

{% for row in events %}
{{ row.title }}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;So then for your is_live column you'd do something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set live_items = hubdb_table_rows(you_hubdb_table,"&amp;amp;is_live=true" ) %}

{% for row in live_items %}
{{ row.title }}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;None of that's been tested, so you'll have to fiddle around but it's the basic idea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt; | &lt;A href="https://www.linkedin.com/in/barrygrennan" target="_blank" rel="nofollow noopener noreferrer"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 15:11:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1028209#M40311</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2024-08-16T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hub DB Dynamic pages from selected rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1028844#M40332</link>
      <description>&lt;P&gt;Thanks Barry.&lt;BR /&gt;&lt;BR /&gt;I'm going for having the date(s) as a text field, because some are multi-day conferences. My users can put what they like in a text field. Then for ordering and inserting more conferences, they can handle that by HubDB row drag-and-drop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 08:01:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hub-DB-Dynamic-pages-from-selected-rows/m-p/1028844#M40332</guid>
      <dc:creator>SimonPadbury</dc:creator>
      <dc:date>2024-08-19T08:01:01Z</dc:date>
    </item>
  </channel>
</rss>

