Admin
Content Model

Create a reusable block and add it to an article in Purple Hub

13min

Purple Hub



Summary

In this article, you will learn how to create a reusable content block and add it to any article, saving you the time and hassle of creating the piece of content multiple times. In this article, we will work with a newsletter teaser.

You will create a new reusable block, name it, fill it with different content (headline, text, image), group everything into one block, and publish it. Then, you will learn how to add the newly created usable block to an existing article.



Preconditions

  • Have an Editor Role in Purple Hub
  • Have an article created in which you would like to add the reusable block
  • Have an image uploaded that you would like to add to the reusable block


How-to guide

1. Go to Purple Hub and click on 'Blocks'.

Document image


2. Click 'Add New'.

Document image


3. In the given row, name your block, e.g. 'Weekly Newsletter'.

Document image


4. Click on '+' to add the first block.

Document image


5. Choose a block from the list and click on it, e.g. 'Heading'.

Document image


6. Format your block as desired, e.g. choose a heading.

Document image


7. Type some text, in our example 'Weekly Newsletter' as a first heading.

Document image


8. Add another block below, e.g. a paragraph.

Document image


9. Add more content, e.g. some text as in this example.

Document image


10. Click on the '+' to add another block.

Document image


11. Choose another block (we use an image block)

Document image


12. Click 'Media Library'.

Document image


13. Choose your desired image from the list and click on it.

Document image


14. Click 'Select'.

Document image


15. The new block is now created and contains the name of the block (which is not visible to your readers) and the reusable block itself (the part that is visible to your readers).

Document image


16. Click 'Publish'.

Document image


17. Go back to the list of Reusable Blocks by clicking on the Purple symbol.

Document image


18. You can find your newly created reusable block now in the list.

Document image


19. Click 'Purple Feed'.

Document image


20. Click 'Articles'.

Document image


21. Choose an article from the list and click on it.

Document image


22. Click the '+' symbol.

Document image


23. Click the 'Reusable' tab.

Document image


24. Choose your block from the list and click on it

Document image


25. The block is now added to your article

Document image


26. Click 'Save Draft'.

Document image


You have successfully created a new reusable block, published it, added it to an existing article, and saved it as a draft. You can now add this block to any post type.

When you edit an existing reusable block, later on, the changes will be applied to every post in which you added the block before!