Mods for dynamic tags
Dynamic tags are used to pull data from the database from various sources. When displaying that data in your template, often times you may need to modify it or manipulate it.
For example you may need to apply formatting to a plain number and add a currency.
e.g 2000 to $2,0000
or format a date to a formatted date
e.g 2025-03-12 14:29:47 to Wednesday, March 12, 2025
In other cases, you may need to account what is returned when a dynamic tag is empty.
For example if you are outputting a price, but the price is not available, you could return a fallback text “No price available”
And in more advanced cases, you may need to make math calculations between different dynamic tags and return the output.
All of these things are done by utilizing Mods. There’s a lot to cover with mods in upcoming articles, but for now we’re going to show how to apply a mod to a dynamic tag using a simple example
Example use case:
In our Post type fields, we have added a Number field, and named it Price.
We create a post and type 2000 as given price
Now, we need to display that price in our Single Post template
We edit the template and place a Text based widget which we will use to display our price.

to display the price on this widget, we enable dynamic tags and select Post > Price dynamic tag

and now our widget outputs 2000

Applying a mod
As we want to format this number and specify a currency, we have to apply a mod named “Currency Format”
We press “Edit tags” again” to return to the dynamic tags UI
Next, click on the dynamic tag to toggle the right sidebar area

Press Add a mod and select Currency Format

Once added, each mod can provide additional options. In this case, this mod lets us pick the Currency, which in this example we pick USD

We save changes and now our number is formatted as a price when displayed in our template

Shortcut to adding mods:
The dynamic tags UI provides a no code way to achieve all tasks it provides via the user interface, but for those who master Voxel and memorize things, there’s a shortcut to adding tags and mods using keyboard only.
In the dynamic content area:
Press @ to find the tag

Once the tag is added, press . (dot) after the tag to search for the mod

and select the mod you need
