<?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 Custom search module for site pages and HubDB rows in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1001546#M39775</link>
    <description>&lt;P&gt;Hi, I am trying to create a custom search page that searches both site pages and a HubDB table (the table has a URL row that references external pages).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried cloning the default search input page and edited the "Search results include" options to include a hubDB table.&amp;nbsp; I also added a hidden input type with the table name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% if module.content_types.hubdbtable_field %}&lt;BR /&gt;&amp;lt;input type="hidden" name="table_name" value="testing_search"&amp;gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming there is more to it than this, and I am not even sure if its even possible to combine search results in this way.&amp;nbsp; The requestURL for internal pages must be different from the requestURL for HubDB rows...?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am new to CMS dev and know only basic JS so any help would be much appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 17:25:18 GMT</pubDate>
    <dc:creator>annaboateng</dc:creator>
    <dc:date>2024-07-05T17:25:18Z</dc:date>
    <item>
      <title>Custom search module for site pages and HubDB rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1001546#M39775</link>
      <description>&lt;P&gt;Hi, I am trying to create a custom search page that searches both site pages and a HubDB table (the table has a URL row that references external pages).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried cloning the default search input page and edited the "Search results include" options to include a hubDB table.&amp;nbsp; I also added a hidden input type with the table name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% if module.content_types.hubdbtable_field %}&lt;BR /&gt;&amp;lt;input type="hidden" name="table_name" value="testing_search"&amp;gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming there is more to it than this, and I am not even sure if its even possible to combine search results in this way.&amp;nbsp; The requestURL for internal pages must be different from the requestURL for HubDB rows...?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am new to CMS dev and know only basic JS so any help would be much appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 17:25:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1001546#M39775</guid>
      <dc:creator>annaboateng</dc:creator>
      <dc:date>2024-07-05T17:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom search module for site pages and HubDB rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1001979#M39785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127813"&gt;@annaboateng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I am aware it may not be possible to customise the native HuBSpot search module to search in and return results from within a HubDB table. Other discussions on the topic appear to be inconclusive:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.hubspot.com/t5/CMS-Development/Search-HubDB-Table-with-Hubl/m-p/701997" target="_blank"&gt;https://community.hubspot.com/t5/CMS-Development/Search-HubDB-Table-with-Hubl/m-p/701997&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.hubspot.com/t5/CMS-Development/How-to-search-in-HubDB/m-p/596552" target="_blank"&gt;https://community.hubspot.com/t5/CMS-Development/How-to-search-in-HubDB/m-p/596552&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the content has indexable pages, either auto-generated or linked, my suggestion would be to look at implementing a thirdparty solution instead - something like&amp;nbsp;&lt;A href="https://swiftype.com/" target="_blank" rel="noopener"&gt;Swiftype&lt;/A&gt; or &lt;A href="https://www.sitesearch360.com/" target="_blank" rel="noopener"&gt;Site Search 360&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 09:10:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1001979#M39785</guid>
      <dc:creator>Phil_Vallender</dc:creator>
      <dc:date>2024-07-08T09:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom search module for site pages and HubDB rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1002195#M39791</link>
      <description>&lt;P&gt;Yeah I have been searching all over for an answer to this but could not find a conclusive answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to add the HubDB table as an search option in the design manager but not sure where to go from there&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annaboateng_0-1720452013818.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121332i029423FD5F85F032/image-size/medium?v=v2&amp;amp;px=400" role="button" title="annaboateng_0-1720452013818.png" alt="annaboateng_0-1720452013818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:20:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1002195#M39791</guid>
      <dc:creator>annaboateng</dc:creator>
      <dc:date>2024-07-08T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom search module for site pages and HubDB rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1073831#M41376</link>
      <description>&lt;P&gt;Did you ever find a solve for this other than the suggestions from Phil?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 16:36:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1073831#M41376</guid>
      <dc:creator>NChappell</dc:creator>
      <dc:date>2024-11-22T16:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom search module for site pages and HubDB rows</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1073930#M41379</link>
      <description>&lt;P&gt;I ended up creating a search page with two custom modules in it, one was the regular search module and one that&amp;nbsp;filtered a hubDB table and returned the results as a list.&amp;nbsp; I set the queryParam to use the search term in the url.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are probably more elegant solutions but this worked for our purposes!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the custom HubDB search module:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% set queryParam = "" %}&lt;BR /&gt;{% set searchTerm = request.query_dict['term'] %}&lt;/P&gt;&lt;P&gt;{% set queryParam = "tags__icontains="~searchTerm %}&lt;/P&gt;&lt;P&gt;{% if searchTerm %}&lt;BR /&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;b&amp;gt;Suggested Support Articles&amp;lt;/em&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;ul&amp;gt;&lt;BR /&gt;{% set rows = hubdb_table_rows(module.hubdbtable_field, queryParam) %}&lt;BR /&gt;{% for row in rows %}&lt;BR /&gt;&amp;lt;li&amp;gt;&amp;lt;a href="{{ row.url }}"&amp;gt;{{ row.title }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;/ul&amp;gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 20:02:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-search-module-for-site-pages-and-HubDB-rows/m-p/1073930#M41379</guid>
      <dc:creator>annaboateng</dc:creator>
      <dc:date>2024-11-22T20:02:48Z</dc:date>
    </item>
  </channel>
</rss>

