CMS Development

lisem
Member

How to preview a Global Groups with a given spreadsheet ?

SOLVE

Hello,

 

I have designing a Global Groups ( Footer ) and would like to preview it with the spreadsheet that will be used on a template page ( in this case the Email subscriptions pages ) .  How can I do that?

It looks as if  the only way to see a Global module with a CSS file is to display the page in which it is included. 

 

Any tips would be appreciated ( note that I am relatively new to Hubspot). 

 

Thanks -- Lise

0 Upvotes
1 Accepted solution
Anton
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

How to preview a Global Groups with a given spreadsheet ?

SOLVE

Hi @lisem

you're right. 

The only way to see global elements in "live" environment is via somekind of template. 

 

You can a) clone the QA template if you're working with the boilerplate, b) create your own QA Template with all elements you want to check or c) clone the QA template from the "Growth" theme (or some other default provided themes by HubSpot)

 

If you're creating your own template, it could look something like this:

<!--
templateType: page
isAvailableForNewContent: true
label: Quality testing template
-->
{% extends '../../templates/layout/layout.html' %}

{% block body %}
{% endblock body %}

{% block footer %}
{% global_partial path="../templates/globals/footer.html" name="Footer", no_wrapper=True %}
{% endblock footer %}

 

 

hope this helps, 

 

best,

Anton

Anton Bujanowski Signature

View solution in original post

2 Replies 2
Anton
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

How to preview a Global Groups with a given spreadsheet ?

SOLVE

Hi @lisem

you're right. 

The only way to see global elements in "live" environment is via somekind of template. 

 

You can a) clone the QA template if you're working with the boilerplate, b) create your own QA Template with all elements you want to check or c) clone the QA template from the "Growth" theme (or some other default provided themes by HubSpot)

 

If you're creating your own template, it could look something like this:

<!--
templateType: page
isAvailableForNewContent: true
label: Quality testing template
-->
{% extends '../../templates/layout/layout.html' %}

{% block body %}
{% endblock body %}

{% block footer %}
{% global_partial path="../templates/globals/footer.html" name="Footer", no_wrapper=True %}
{% endblock footer %}

 

 

hope this helps, 

 

best,

Anton

Anton Bujanowski Signature
lisem
Member

How to preview a Global Groups with a given spreadsheet ?

SOLVE

Hi Anton. Thank you very much for your detailed and helpful answer. I appreciate it! 

 

Regards,

Lise

0 Upvotes