<?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: Pulling Article Snippets in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198644#M7030</link>
    <description>&lt;P&gt;Awesome&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65780"&gt;@swarming&lt;/a&gt;&amp;nbsp;- Is it all working now?&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 17:43:32 GMT</pubDate>
    <dc:creator>tjoyce</dc:creator>
    <dc:date>2018-07-23T17:43:32Z</dc:date>
    <item>
      <title>Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198249#M7004</link>
      <description>&lt;P&gt;In the blog page Hubspot created for we have three tiles at the bottom that preview other blog posts. On our Wordpress version of our blog we were able to code those tiles to pull specific snippets to appear in the tile's preview rather than just the first couple sentences of the article. Is there a way to do that on Hubspot, as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the URLS for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our&amp;nbsp;Wordpress blog:&amp;nbsp;&lt;A href="https://ideon.agency/ideas/deceptive-branding/" target="_blank"&gt;https://ideon.agency/ideas/deceptive-branding/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Our Hubspot blog:&amp;nbsp;&lt;A href="http://ideas.ideon.agency/ideas/deceptive-branding" target="_blank"&gt;http://ideas.ideon.agency/ideas/deceptive-branding&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:20:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198249#M7004</guid>
      <dc:creator>Emma817</dc:creator>
      <dc:date>2018-07-19T15:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198263#M7006</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65552"&gt;@Emma817&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;first, go to your blog post template (not blog listing) in the design manager. When you click on the blog post module, you will see on the right, a button to edit the module code. Paste in the following code at the top of the page.&lt;/P&gt;&lt;PRE&gt;{% text "excerpt" label="Excerpt", value="" export_to_template_context="true" %}&lt;/PRE&gt;&lt;P&gt;Next, you will go into each blog post that you would like to add an excerpt to, and you will see a new module appear called excerpt, when you click on the "box icon" in the left sidebar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add some text there for your excerpt and save.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, in your custom module that is looping through the blog posts, add a variation of this code which will find the excerpt and display it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I don't have your actual module code, so here is an example):&lt;/P&gt;&lt;PRE&gt;{% set pop_posts = blog_popular_posts('default', 5) %}
  {% for pop_post in pop_posts %}
	{% for w in pop_post.allWidgets %}
           {% if w.name == 'excerpt' %}
              {{w.body.value}}
           {% endif %}
       {% endfor %}
   {% endfor %}&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2018 21:51:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198263#M7006</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-07-29T21:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198598#M7027</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I followed your exact step (even copy pasted) &amp;nbsp;to add the custom field to the blog post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the following snippet, the code has been added, but when I use this tempalte and create a blog post, the module does not appear on the blog create/edit page, as shown in the second screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blog Template edit" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10604iD86F0A031D0E85A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="blog_template.jpg" alt="Blog Template edit" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Blog Template edit&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following screen only shows the blog content and there is no module for the text excerpt that was added to the blog post template.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blog Post content" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10605i710FB115F1035626/image-size/large?v=v2&amp;amp;px=999" role="button" title="blog_edit.jpg" alt="Blog Post content" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Blog Post content&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any settings that have to be updated to make the module visible on the blog create/edit page?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:51:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198598#M7027</guid>
      <dc:creator>swarming</dc:creator>
      <dc:date>2018-07-23T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198622#M7028</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65552"&gt;@Emma817&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution, instead of adding the code to the Blog Post template, it has to be now added to the "Additional &amp;lt;head&amp;gt; markup" section on the Blog template itself. Per Hubspot support, the feature to custom module code into the Blog Post tempalte has been deprecated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the screenshot of where I added the code and the module started appearing on the blog create/edit page;&amp;nbsp;&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="additional-markup.jpg" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10610i70AB94D7A2E07FA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="additional-markup.jpg" alt="additional-markup.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:07:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198622#M7028</guid>
      <dc:creator>swarming</dc:creator>
      <dc:date>2018-07-23T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198644#M7030</link>
      <description>&lt;P&gt;Awesome&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65780"&gt;@swarming&lt;/a&gt;&amp;nbsp;- Is it all working now?&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:43:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198644#M7030</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-07-23T17:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198662#M7037</link>
      <description>&lt;P&gt;It should now work for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65552"&gt;@Emma817&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I would leave it upto&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65552"&gt;@Emma817&lt;/a&gt;&amp;nbsp;to close this question.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 18:34:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/198662#M7037</guid>
      <dc:creator>swarming</dc:creator>
      <dc:date>2018-07-23T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Article Snippets</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/293116#M13706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for sharing your solutions to the Excerpt and I'm trying your method, however, I could only reach to the first step (I can see the excerpt module in my left sidebar) and I couldn't understand how to execute the second step of the module code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain more? Would be really appreciate for the help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sasa&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 09:36:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-Article-Snippets/m-p/293116#M13706</guid>
      <dc:creator>Nell</dc:creator>
      <dc:date>2019-09-25T09:36:18Z</dc:date>
    </item>
  </channel>
</rss>

