DOCS

Dynamic tags introduction

Dynamic tags are used to pull data from the database in order to populate templates you design using a page builder, with dynamic content.

The benefit of this is you use the page builder to its full potential to create your design freely, and then you populate individual parts of that design with dynamic data.

Let’s see an example

We are designing a Single Post template, and we added a Heading widget to it, with the intention of displaying Post Title there.

At the moment, if we save the template, all posts will display this same text, as the text is static.

To display the post title dynamically, we can enable Dynamic Tags by clicking the Voxel icon next to the Title control

This opens the Voxel dynamic content UI

On the left sidebar, we see different groups or sources from which we can pull dynamic data. As we are designing a Single post template, the first source is Post. Other sources include Author, User and Site.

Since we want to pull Post title, we can click Post group, then click on Title tag to add it

Then press Save.

Now, our Heading widget will display the Post Title dynamically

Continue reading