Typemill   ›   Paid Features   ›   Variables Plugin

Variables Plugin

The Variables and Snippets Plugin lets you define reusable text variables and Markdown snippets in a central location. You can insert them into your content using shortcodes. This makes it easier to update content and keep it consistent across your website. The plugin requires a BUSINESS license.

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.