Variables Plugin
Use Cases
The Variables and Snippets Plugin is particularly useful for:
- Manuals and Documentation: Centralize frequently changing details like names, prices, or product specifications.
- Content Templates: Create reusable sections, such as disclaimers, product descriptions, or contact information.
- Dynamic Content Management: Update a single variable or snippet to reflect changes across all pages instantly.
How It Works
Once activated, a new "Variables" menu is added to the Typemill system settings. From here, you can create, search, update, and delete variables and snippets:
- Variables Define simple key-value pairs for dynamic content. For example, a variable
price
with the value$99.99
can be inserted into pages using the shortcode:[:variable name="price" :]
- Snippets Create reusable Markdown content blocks for larger text sections. For instance, a snippet
contact-info
with your site's address and details can be added using:[:snippet name="contact-info" :]
The variables plugin is available with a BUSINESS license.