<?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: Blog Templates in HTML and Custom Modules in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218349#M9896</link>
    <description>&lt;P&gt;This is super helpful! Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 16:43:19 GMT</pubDate>
    <dc:creator>jmarcello</dc:creator>
    <dc:date>2018-11-26T16:43:19Z</dc:date>
    <item>
      <title>Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217111#M9754</link>
      <description>&lt;P&gt;Here's is what I am trying to do...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All my blog pages are using custom HTML/CSS/JS. I am not using the drag and drop design manager. My blog posts template is simply called single HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am needing certain sections of my blog post to have content that can be input by a non-coder on the blog post edit page by simply filling out some fields. In Wordpress this would be the equivalent of metaboxes/custom fields, using a plugin like Advanced Custom Fields.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For instance, I might have a section called "You Might Also Like" which will offer a variable number of our products to blog readers. Each product would have an image, a link to the product page, and a product name/title.&lt;BR /&gt;&lt;BR /&gt;I want team members to be able to create a new blog post, and then input raw data into some "custom" fields that will store that info on a post by post basis.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to then be able to write custom queries in the blog post template to place those products on the page, but looping through the data and inserting the values for the custom fields. For instance:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% for product in products  %}
&amp;lt;div class="box"&amp;gt;
&amp;lt;img src="{{ get the product image url }}" /&amp;gt;
&amp;lt;a href="{{ get_the_product_page_url}}"&amp;gt;
&amp;lt;div&amp;gt;{{ get_the_product_name }}&amp;lt;/div&amp;gt;
&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;
{% endfor %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thinking may be I need to build a custom module, and that is might require something like a "repeater" filed as I would need to be able to loop through it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this? Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:10:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217111#M9754</guid>
      <dc:creator>jmarcello</dc:creator>
      <dc:date>2018-11-16T17:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217116#M9757</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/59154"&gt;@jmarcello&lt;/a&gt;, i &lt;A href="https://designers.hubspot.com/docs/hubl/hubl-supported-tags" target="_blank"&gt;think&lt;/A&gt; this and &lt;A href="https://designers.hubspot.com/docs/hubl/hubl-module-syntax-and-parameters" target="_blank"&gt;this&lt;/A&gt; is the documentation you need.&lt;/P&gt;&lt;P&gt;if you need some of that content to appear on your blog listing page as well, make sure to set the export_to_template to true&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:38:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217116#M9757</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2018-11-16T17:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217509#M9785</link>
      <description>&lt;P&gt;Dennis,&lt;BR /&gt;&lt;BR /&gt;I appreciate the links and read through them.&lt;BR /&gt;&lt;BR /&gt;Yet both of those pages are rather extensive and I am just not sure what parts are relevant to the exact scenario I've outlined above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to help out with a more detailed explanation to help us acheive the stated goal?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:27:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217509#M9785</guid>
      <dc:creator>jmarcello</dc:creator>
      <dc:date>2018-11-19T19:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217522#M9791</link>
      <description>&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/forums/replypage/board-id/designers_support/message-id/9785" target="_blank"&gt;Reply&lt;/A&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/59154"&gt;@jmarcello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I overlooked that&amp;nbsp; you may need more or less products on a page.&lt;/P&gt;&lt;P&gt;A custom module using the repeater is the perfect solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build out your module including the &lt;A href="https://designers.hubspot.com/blog/repeating-fields-in-the-new-module-framework" target="_blank"&gt;repeater option&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the bottom of the right sidebar, you should see an embed code for the module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slap that guy into your post file where you want it and you should be good.&lt;/P&gt;&lt;P&gt;sorry for misread last time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 328px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13156iAA6DCC80F9259D59/image-size/large?v=v2&amp;amp;px=999" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:47:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/217522#M9791</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2018-11-19T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218197#M9872</link>
      <description>&lt;P&gt;I am totally lost...cCan you start at the beginning and spell it out for me?&amp;nbsp;Maybe with specific code examples...?&lt;BR /&gt;&lt;BR /&gt;Or is there any one else in the community that can break this down for me in a way that is understandable?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 19:45:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218197#M9872</guid>
      <dc:creator>jmarcello</dc:creator>
      <dc:date>2018-11-23T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218198#M9873</link>
      <description>&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/43024" target="_blank"&gt;@jausura&lt;/A&gt;&amp;nbsp;can you look at this thread and provide some assistance?&lt;BR /&gt;&lt;BR /&gt;How do I create a custom module which contains a repeater field...?&lt;BR /&gt;How do I call the results of the repeater field into the blog post template?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 19:49:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218198#M9873</guid>
      <dc:creator>jmarcello</dc:creator>
      <dc:date>2018-11-23T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218336#M9895</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/59154"&gt;@jmarcello&lt;/a&gt;, apologies for delay.&amp;nbsp; thanksgiving &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to build a custom module with a repeater field do the following:&lt;/P&gt;&lt;P&gt;1) create a new custom module and make sure to select blog in the options&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 394px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13287iE3CFE5E0F7ABEB30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) create the fields that are necessary (eg text field, image field) the click "group"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 333px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13288i0BA0255E3B32FFA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) add the fields that you would like to include in the repeater group&lt;/P&gt;&lt;P&gt;4) name your group something meaningful&lt;/P&gt;&lt;P&gt;5) in the sidebar, scroll down and select "repeater option"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot_and_●_Scrum_Board_-_EDT___Troubleshoot_Domain_Redirects_-_Asana.png" style="width: 196px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13289iAEB90304674C70B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Design_Manager___HubSpot_and_●_Scrum_Board_-_EDT___Troubleshoot_Domain_Redirects_-_Asana.png" alt="Design_Manager___HubSpot_and_●_Scrum_Board_-_EDT___Troubleshoot_Domain_Redirects_-_Asana.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(this is subjective on my part, you can do the following however floats your boat)&lt;/P&gt;&lt;P&gt;6.&amp;nbsp; In the main html + hubl section, add whatever html layout you want to use for the content&lt;/P&gt;&lt;P&gt;my sample code is this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="repeater-container"&amp;gt;
  &amp;lt;div class="repeater-item"&amp;gt;
  	&amp;lt;img&amp;gt;
    &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;7.&amp;nbsp; back in the sidebar, click copy under the repeater group and select "copy snippet"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 272px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13290iC427E381F450DE17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;8.&amp;nbsp; paste the code in a text file or somewhere for reference.&lt;/P&gt;&lt;P&gt;9.&amp;nbsp; from your pasted code, select the {% for item in ... %} and place above the item in your html and add the endfor below the closing div of your item.&amp;nbsp; will look something like this&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="repeater-container"&amp;gt;
{% for item in module.test_repeater_group %}
  &amp;lt;div class="repeater-item"&amp;gt;
  	&amp;lt;img&amp;gt;
    &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;
  &amp;lt;/div&amp;gt;
{% endfor %}
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;10.&amp;nbsp; now, wherever you have editable values, you will insert the field values. so you will find the value for your image and the all of your text and place the values from the code you have copied.&amp;nbsp; using my example, it will look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% for item in module.test_repeater_group %}
  &amp;lt;div class="repeater-item"&amp;gt;
  	&amp;lt;img src="{{ item.image.src }}" alt="{{ item.image.alt }}" width="{{ item.image.width }}" height="{{ item.image.height }}"&amp;gt;
    &amp;lt;p&amp;gt;{{ item.heading }}&amp;lt;/p&amp;gt;
  &amp;lt;/div&amp;gt;
{% endfor %}
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;11.&amp;nbsp; publish your module&lt;/P&gt;&lt;P&gt;12.&amp;nbsp; click on the gear icon in the sidebar&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 198px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13291i6489629EE2C02BE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;13.&amp;nbsp; scroll to the bottom of the sidebar and you should see a snippet you can copy for the module you just built&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 332px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13292i6E5A26C5DD10A71D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now you can place this code into your blog post html file where ever you need it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;good luck,&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:00:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218336#M9895</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2018-11-26T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Blog Templates in HTML and Custom Modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218349#M9896</link>
      <description>&lt;P&gt;This is super helpful! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:43:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-Templates-in-HTML-and-Custom-Modules/m-p/218349#M9896</guid>
      <dc:creator>jmarcello</dc:creator>
      <dc:date>2018-11-26T16:43:19Z</dc:date>
    </item>
  </channel>
</rss>

