Site logo

Archived topic

Template Library vs. Reusable Blocks

5 replies · Started by Fabrizio on July 5, 2021

Viewing posts 1–6 of 6

Hello,
perhaps this question already exists, but in a quick check I didn't find the topic.

So, the difference between Reusable Blocks and Export to the Template library is the following, as far as I have figured out:

If I save a block as a Reusable Block, then I can reuse the block where I want, but when I change something, the block updates itself in every page or post when it is imported.
So this is nice for having automatically updated the block everywhere.

If I save a block as a Template in the Template Library, then I can reuse the block, by importing it from the Library, this is very useful for the layout and customizations of colours and so on. But if I change a block that I imported from the Library and not from Reusable Blocks, then the change only affects the imported block and not every block in the website with the same layout.

Is this correct?

I want to use the block for later reuse, but for me it is more useful to have it imported only for the layout and not as reusable block that is updated everywhere.

Any help from the support?

Why every time I change a block imported from the Library, then the interface asks me to update also the blocks? I don't want to update the blocks everywhere. If I would like to change the layout I would go to the Local Templates Library and would change it.

The only solution I found for this is to import a reusable Block, then Duplicate it in the page I work on, so the duplicate block does not involve all the other reusable blocks.

Is there any other solution to this?

Hi there,

1. Is this correct? - Yes.

2. Any help from the support? - you would have to create Global Styles, apply them to your GP Local Template. Then in the future you can edit the Global Styles and those changes will be applied to ANY blocks that have the global styles applied to them.

3. I am not sure here - the only time i see this is if you have added a reusable block to the page, and some edit has been made to this. It should not happen with a GB Local template or from its template library unless it contains a re-usable blocks.

As a note - avoid adding reusable blocks inside reusable blocks, there is a known bug with this and can create an endless loop - we'll be updating GB soon to ensure GB blocks don't cause this issue.

First of all, thanks for your reply. In the main menu of Generate Blocks I would add Reusable blocks, because to come there is quite difficult.
Then we have

Global Styles - Sitewide settings, if I modify somethin here, every style will be impacted, but what about the text inside?
Local Templates - I think this is for me at this point the most painless option to use, even if in the future I will have to change something manually.
Reusable blocks - It is difficult to reach the page of all the reusable blocks, I mean this from a user interface inside GB.

Unfortunately I started my web design from Reusable Blocks, so now I think I will delete all the reusable blocks or transform them into drafts, so that I don't have a mess, because when I try to add a new block I get shown the option of reusable blocks first. To get into Local Templates I have to go inside Library and then through the tab I get into this Local Templates.

Still, I don't have clear how Global Styles work in a daily workflow, perhaps you could do a video about all this.

Hi Fabrizio,

Here's a video on how to use the Global style:
https://youtu.be/GjyYcr8ldHQ

but what about the text inside?

It doesn't matter what text inside, global style only affects the style, not the content.

If you are using a global style for a block, but you changed some styles for this block afterwards, eg, color/padding, then the changed style will override the global style.

Let me know if you need further assistance :)

Thanks for the video and for the answer.
This is very important and useful to know that changes in Global Styles will only impact the layout and design.

Hope you'll be enjoy using these features of GB :)

Once you've mastered it, it could be very powerful and useful!

This archived topic is closed to new replies.