The website designer offers building blocks in website edit mode, which can be dragged on the page. This recipe will cover how to offer your own blocks, called snippets, internally.
Offering snippets to the user
Getting ready
For this recipe, we will be using the my_library module from the previous recipe.
How to do it...
A snippet is actually just a QWeb view that gets injected in the Insert blocks bar, which is defined by a QWeb view itself. Follow these steps:
- Add a file called views/snippets.xml, as follows:
<?xml version="1.0" encoding="UTF-8"...