Variables Plugin

The Variables and Snippets Plugin is a powerful tool for managing reusable text variables and Markdown snippets across your website. By defining variables and snippets in a central location, you can easily integrate them into your content using simple shortcodes. This plugin streamlines content updates and ensures consistency, making it ideal for documentation, templates, and dynamic content.

Screenshot of the variables plugin for typemill

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.