This can be used to share values or states between multiple templates. Keep in mind that a value will only be available in templates that are parsed after it was set.

No data is persisted betwen page loads. This is strictly for storing data that will be used at a later point within the same request.

Example Use Cases

  • Set a variable in an included template, and have access to it from the parent (or layout).
  • Multiple "related posts" areas that should never show the same post. Store the entry IDs as they are output, and exclude them from later queries.
  • Increment a counter inside an included partial, then output the total after the last item.
  • Use your imagination!
Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
14
Version
1.0.0
License
MIT
Compatibility
Craft 3
Last release
March 7, 2019
Categories