Transient


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!

Free

Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Information

  • Version 1.0.0
  • Last Update 3/7/2019
  • Active Installs 9
  • Compatibility Craft 3
  • License MIT
  • Categories Templating

Report an issue