<?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: Accessing content.keyword section for pages in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/337146#M16474</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128951"&gt;@FabianRichter&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to make your content editors lifes easier a possible solution could be:&lt;/P&gt;
&lt;P&gt;create a new module(not global) with a single text field(not rich-text) and enable the repeater function in it. I've called mine "keyword"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;paste following code into the HTML+Hubl(important) section of the module:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content=""&amp;gt;' );&amp;lt;/script&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;copy the snippet from the text field you've created and paste it below the script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should look like this:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content=""&amp;gt;' );&amp;lt;/script&amp;gt;
{% for item in module.keyword %}
	{% inline_text field="keyword" value="{{ item }}" %}
{% endfor %}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;change the code to:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content="{% for item in module.keyword %}{ item }}{% endfor %}"&amp;gt;' );&amp;lt;/script&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;now your content editors could easily add a keyword per repeater function...&amp;nbsp;&lt;STRONG&gt;BUT...&amp;nbsp;&lt;/STRONG&gt;there are a few small steps left.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;First:&lt;/STRONG&gt; you'll have to seperate each keyword from another.&lt;BR /&gt;you can do this by adding a "comma" after the item&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content="{% for item in module.keyword %}{ item }},{% endfor %}"&amp;gt;' );&amp;lt;/script&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Second/Last: &lt;/STRONG&gt;you'll have to put the module into the template. There are several ways to achieve this. If you're using the drag&amp;amp;drop template builder simply add it to the footer section of each template. If you're using html templates, copy the module snippet.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;best,&lt;BR /&gt;Anton&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 22:27:07 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2020-05-06T22:27:07Z</dc:date>
    <item>
      <title>Accessing content.keyword section for pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/334506#M16324</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;currently I am working on a solution to add automatically related content from our website (not only related blog posts) into a related content carousel. At this moment this module works with selecting following functionality:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;related blog posts (dynamically) or&lt;/LI&gt;&lt;LI&gt;recent blog posts (dynamically) and not required&lt;/LI&gt;&lt;LI&gt;related pages (manually, like pillar pages, white papers, event pages)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;At this point I started thinking about adding related pages also dynamically by keywords/tags as it works on the blog. My first idea was to use the meta-keyword functionality, wich is not the best solution for non-developers, but might work. So I started to fill the additional head html under advanced website settings with the meta key&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;meta name="keywords" content="dispatching, test"&amp;gt;&lt;/PRE&gt;&lt;P&gt;This way I could access the keywords in my modules. But I feel like this is a bit dirty and I asked myself if it would be possible to insert the unused JSON-branches like content.keywords, content.meta_keywords, ... I found in the developer infos, which are empty or null. I would also appreciate a suggestion to make the keywords-input easier for content editors - even if we could input the keywords by adding them into a module. Any ideas are welcome!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:33:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/334506#M16324</guid>
      <dc:creator>FabianRichter</dc:creator>
      <dc:date>2020-04-27T09:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing content.keyword section for pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/336857#M16463</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128951"&gt;@FabianRichter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the information provided. I'll tag a few of our experts that can share their knowledge with you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/786"&gt;@Reg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;could you please share your thoughts with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128951"&gt;@FabianRichter&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Sharon&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 08:49:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/336857#M16463</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2020-05-06T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing content.keyword section for pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/337146#M16474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128951"&gt;@FabianRichter&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to make your content editors lifes easier a possible solution could be:&lt;/P&gt;
&lt;P&gt;create a new module(not global) with a single text field(not rich-text) and enable the repeater function in it. I've called mine "keyword"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;paste following code into the HTML+Hubl(important) section of the module:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content=""&amp;gt;' );&amp;lt;/script&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;copy the snippet from the text field you've created and paste it below the script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should look like this:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content=""&amp;gt;' );&amp;lt;/script&amp;gt;
{% for item in module.keyword %}
	{% inline_text field="keyword" value="{{ item }}" %}
{% endfor %}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;change the code to:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content="{% for item in module.keyword %}{ item }}{% endfor %}"&amp;gt;' );&amp;lt;/script&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;now your content editors could easily add a keyword per repeater function...&amp;nbsp;&lt;STRONG&gt;BUT...&amp;nbsp;&lt;/STRONG&gt;there are a few small steps left.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;First:&lt;/STRONG&gt; you'll have to seperate each keyword from another.&lt;BR /&gt;you can do this by adding a "comma" after the item&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;$('head').append( '&amp;lt;meta name="keywords" content="{% for item in module.keyword %}{ item }},{% endfor %}"&amp;gt;' );&amp;lt;/script&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Second/Last: &lt;/STRONG&gt;you'll have to put the module into the template. There are several ways to achieve this. If you're using the drag&amp;amp;drop template builder simply add it to the footer section of each template. If you're using html templates, copy the module snippet.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;best,&lt;BR /&gt;Anton&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 22:27:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/337146#M16474</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2020-05-06T22:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing content.keyword section for pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/337195#M16478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;,&lt;BR /&gt;that sounds really good. I will try that and give you a response soon.&lt;BR /&gt;Thank you!&lt;BR /&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 08:15:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Accessing-content-keyword-section-for-pages/m-p/337195#M16478</guid>
      <dc:creator>FabianRichter</dc:creator>
      <dc:date>2020-05-07T08:15:04Z</dc:date>
    </item>
  </channel>
</rss>

