<?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  repeater fields to HubSpot blog in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810003#M34698</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello, I added extra fields to my blog template like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% text "blog_custom_cat" label="Enter custom category here", value="" %}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;This creates a "custom" field for each blog where I build a filter on.&lt;BR /&gt;&lt;/SPAN&gt;Now I want to have multiple categorys. is it possible to make a repeater field out of this?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 08:32:23 GMT</pubDate>
    <dc:creator>BBecker1</dc:creator>
    <dc:date>2023-06-21T08:32:23Z</dc:date>
    <item>
      <title>Custom  repeater fields to HubSpot blog</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810003#M34698</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I added extra fields to my blog template like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% text "blog_custom_cat" label="Enter custom category here", value="" %}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;This creates a "custom" field for each blog where I build a filter on.&lt;BR /&gt;&lt;/SPAN&gt;Now I want to have multiple categorys. is it possible to make a repeater field out of this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 08:32:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810003#M34698</guid>
      <dc:creator>BBecker1</dc:creator>
      <dc:date>2023-06-21T08:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom  repeater fields to HubSpot blog</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810128#M34704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/558010"&gt;@BBecker1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, it is possible to create a repeater field for multiple categories in HubSpot blog templates.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;One approach to creating a repeater-like field for multiple categories is by utilizing a custom module or custom fields. Here's a general outline of how you can accomplish this:&lt;/P&gt;
&lt;P&gt;Create a custom module: In your HubSpot account, navigate to Design Tools and create a custom module. This module will serve as the container for your repeater-like field.&lt;/P&gt;
&lt;P&gt;Add fields to the custom module: Within the custom module, you can add fields such as text fields, dropdowns, or checkboxes to represent your categories. You can add as many fields as needed to accommodate multiple categories.&lt;/P&gt;
&lt;P&gt;Include the custom module in your blog template: Once you've created and configured your custom module with the necessary fields, you can include it in your blog template using HubL code. This will enable you to display and edit the multiple categories on each blog post.&lt;/P&gt;
&lt;P&gt;Access the category values in filters: To utilize the categories as filters, you can write custom HubL or JavaScript code to extract the values of the category fields from each blog post. You can then use these values to create filters or perform any desired actions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;Hope this will helps you out. Please mark it as Solution Accepted to help other Community member. Thanks!&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:14915,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;4&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:16777215},&amp;quot;9&amp;quot;:0,&amp;quot;12&amp;quot;:0,&amp;quot;14&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:3360603},&amp;quot;15&amp;quot;:&amp;quot;\&amp;quot;Lexend Deca\&amp;quot;, system-ui, Helvetica, Arial, sans-serif&amp;quot;,&amp;quot;16&amp;quot;:11}"&gt;Hope this will helps you out. Please mark it as Solution Accepted to help other Community member. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 12:48:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810128#M34704</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2023-06-21T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom  repeater fields to HubSpot blog</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810395#M34706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/558010"&gt;@BBecker1&lt;/a&gt;, what's the outcome you're looking for?&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/346639"&gt;@GRajput&lt;/a&gt;&amp;nbsp;mentioned - you can create a repeater module for a blog post, but it would be much easier to use the already build-in &lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#blog-tags" target="_blank" rel="noopener"&gt;blog_tag&lt;/A&gt; function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code(can be a custom module or directly in your blog template) should look like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set my_tags = blog_tags("default", 250) %}
&amp;lt;ul&amp;gt;
{% for single_tag in my_tags %}
&amp;lt;li&amp;gt;&amp;lt;a href="{{ blog_tag_url(group.id, single_tag.slug) }}"&amp;gt;{{ single_tag }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have several blogs and want to use the module more independently you should create a custom module with a blog select(in this case the name is "blog select") option and modify the code like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set my_tags = blog_tags(module.blog_select, 250) %}
&amp;lt;ul&amp;gt;
{% for item in my_tags %}
&amp;lt;li&amp;gt;&amp;lt;a href="{{ blog_tag_url(group.id, item.slug) }}"&amp;gt;{{ item }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to limit the possible outcome you can change the number(250) either to a different number - or - add a number field(I call it "tag limit")&amp;nbsp; to the custom module and modify the code like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set my_tags = blog_tags(module.blog_select, module.tag_limit) %}
&amp;lt;ul&amp;gt;
{% for item in my_tags %}
&amp;lt;li&amp;gt;&amp;lt;a href="{{ blog_tag_url(group.id, item.slug) }}"&amp;gt;{{ item }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: the blog templates support drag&amp;amp;drop. This means you could easily create a drag&amp;amp;drop area and create a custom layout with drag&amp;amp;drop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 17:42:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810395#M34706</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2023-06-21T17:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom  repeater fields to HubSpot blog</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810624#M34709</link>
      <description>&lt;P&gt;Hey Anton, This is not really what I mean.&lt;BR /&gt;&lt;BR /&gt;I have the blog template and there I put in this code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% text "blog_custom_cat" label="Enter custom category here", value="" %}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;This creates a field in my blog. and I use this field as the category of the blog so I can filter in my blog listing on this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_3.jpg" style="width: 342px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/93476i974FF534993AB7E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_3.jpg" alt="Screenshot_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I put the code in my blog_detail.html&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 08:08:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810624#M34709</guid>
      <dc:creator>BBecker1</dc:creator>
      <dc:date>2023-06-22T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom  repeater fields to HubSpot blog</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810627#M34710</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, this was my second thought as well, but it would change the structure a bit, and that's not what I wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 08:11:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-repeater-fields-to-HubSpot-blog/m-p/810627#M34710</guid>
      <dc:creator>BBecker1</dc:creator>
      <dc:date>2023-06-22T08:11:45Z</dc:date>
    </item>
  </channel>
</rss>

