<?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 How to create resusable CUSTOM global content in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954521#M38576</link>
    <description>&lt;P&gt;What is the best way, to provide different global content "snippets" to editors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These layout of these content snippets are very different - dnd areas are required, where the editor can create whatever layout needed. These content snippets should be useable in different pages, and provide the possibility to be editable "globally" like any other global content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Section templates sound useful, but do not have a global option.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 08:12:19 GMT</pubDate>
    <dc:creator>stupkad</dc:creator>
    <dc:date>2024-04-04T08:12:19Z</dc:date>
    <item>
      <title>How to create resusable CUSTOM global content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954521#M38576</link>
      <description>&lt;P&gt;What is the best way, to provide different global content "snippets" to editors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These layout of these content snippets are very different - dnd areas are required, where the editor can create whatever layout needed. These content snippets should be useable in different pages, and provide the possibility to be editable "globally" like any other global content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Section templates sound useful, but do not have a global option.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 08:12:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954521#M38576</guid>
      <dc:creator>stupkad</dc:creator>
      <dc:date>2024-04-04T08:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create resusable CUSTOM global content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954638#M38582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/174801"&gt;@stupkad&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have HubDB, you could use it for your snippets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create custom modules and put the HubDB infprmation there. Once done you could set up a dropdown or even a text(not rich-text) field to "search" your HubDB and provide the content based on dropdown option/text input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option which would be possible but is not that "userfriendly" since your users/marketers will need access to the design-tools is setting up a file with all of your content and use the variables in the templates/modules&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{# simple HTML file somewhere in your theme #}

&amp;lt;!--
templateType: "none"
isAvailableForNewContent: false
--&amp;gt;

{% set headline_A = "Lorem ipsum" %}
{% set image_A_path = "loremipsum.com/path-to-image.png" %}

{% set headline_B = "Lorem ipsum dolor" %}
{% set image_B_path = "loremipsumdolor.com/path-to-image.png" %}

...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure to include this file in the templates you'd like to provide those variables. If you want to make them available in every template import it in the base.html/layout.html file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once imported you should be able to use them like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ headline_A }}
&amp;lt;img src={{ image_A_path }} alt=""&amp;gt;

{{ headline_B }}
&amp;lt;img src={{ image_B_path }} alt=""&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;in elements like the rich-text (put them in the source-code view)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option would be to create a (global) module with all of your options and put it with &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/modules/export-to-template-context" target="_blank" rel="noopener"&gt;export_to_template_context&lt;/A&gt; into the template(s) and grab the info through other modules.&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;</description>
      <pubDate>Thu, 04 Apr 2024 11:39:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954638#M38582</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-04-04T11:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create resusable CUSTOM global content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954641#M38583</link>
      <description>&lt;P&gt;Hi Anton, thanks for your reply, but did you read my question?&lt;/P&gt;&lt;P&gt;I am looking for a solution which supports dbd areas...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:42:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954641#M38583</guid>
      <dc:creator>stupkad</dc:creator>
      <dc:date>2024-04-04T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create resusable CUSTOM global content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954659#M38584</link>
      <description>&lt;P&gt;Yes, I've read your question. Based on your request it's quite hard to provide a more precise answer. If you could provide a more detailed usecase I'll be happy to provide more detailed possible solutions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: Those were simple examples but you could do that with dnd areas as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option A:&lt;/P&gt;
&lt;P&gt;Put your dnd_area layout into a rich-text element of a HubDB and provide a select option in a module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option B:&amp;nbsp;&lt;BR /&gt;Put your dnd_area layout into a html file and import it in the template&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option C:&lt;BR /&gt;Write your dnd_areas in one file wrapped in an if-elif-endif statemenet and show/hide them based on a module setting with export_to_template_context.&lt;/P&gt;
&lt;P&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;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 12:10:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/954659#M38584</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-04-04T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create resusable CUSTOM global content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/956704#M38612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/174801"&gt;@stupkad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use global modules for your global content. You can refer to this doc for more info&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/design-manager/use-global-content-across-multiple-templates" target="_blank"&gt;https://knowledge.hubspot.com/design-manager/use-global-content-across-multiple-templates&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 15:48:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-create-resusable-CUSTOM-global-content/m-p/956704#M38612</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2024-04-08T15:48:39Z</dc:date>
    </item>
  </channel>
</rss>

