<?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: Anchor to search result in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/648884#M29085</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94047"&gt;@dimitreliasb&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Do you have any insight or experience here&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 19:38:13 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2022-06-13T19:38:13Z</dc:date>
    <item>
      <title>Anchor to search result</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/648867#M29084</link>
      <description>&lt;P&gt;I have added the HS search module to a web page. I was wondering if we can make it more user friendly. For example if I have a very long page of resources and the user enters the keyword in the seach input and the index finds the correct page so I click on that result but then it takes me to the page but that page has 10,000 words so it can take the user a while to pinpoint where that result was on that page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to set something like anchors so not only the result goes to the correct page, but also scrolls down to where it found the keyword? I am assuming java script can do this had the same issue?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:20:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/648867#M29084</guid>
      <dc:creator>dimitreliasb</dc:creator>
      <dc:date>2022-06-13T19:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Anchor to search result</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/648884#M29085</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94047"&gt;@dimitreliasb&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Do you have any insight or experience here&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much! — Jaycee&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:38:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/648884#M29085</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-06-13T19:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Anchor to search result</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/649163#M29093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94047"&gt;@dimitreliasb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution you're looking for will indeed rely on javascript.&lt;/P&gt;
&lt;P&gt;The buil-in search engine returns, along with each search result, the snippet of text best corresponding to the search input. (cf. &lt;A href="https://developers.hubspot.com/docs/cms/features/content-search" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could imagine adding the snippet as a query parameter on each of your search results.&lt;BR /&gt;And then have a javascript function running on page load that will do a search for the queried content, add an anchor and scroll automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's quite a bit of work, and on both pages (search results AND your regular page templates), but it is definitely doable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ludwig&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:11:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/649163#M29093</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-06-14T09:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Anchor to search result</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/649256#M29095</link>
      <description>&lt;P&gt;like&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;&amp;nbsp;said, it will take a bit of javascript work but it is possible. I'd probably use a function that checks for search term query parameter that would then scroll to the first instance of that term in the main content of the page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:56:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Anchor-to-search-result/m-p/649256#M29095</guid>
      <dc:creator>stefen</dc:creator>
      <dc:date>2022-06-14T11:56:24Z</dc:date>
    </item>
  </channel>
</rss>

