-
Notifications
You must be signed in to change notification settings - Fork 20
{exp:stash:parse}
Mark Croxton edited this page Aug 13, 2014
·
6 revisions
Parse arbitrary regions of your template.
{exp:stash:parse process="inline" parse_depth="2"}
{exp:channel:entries}
{exp:stash:set name="my_title"}{title}{/exp:stash:set}
{/exp:channel:entries}
{/exp:stash:parse}
{exp:stash:get name="my_title"}
When in the parse order of your EE template do you want the tags to be parsed (default='inline')
Parse the enclosed tagdata in the natural parse order of the template
Parse the enclosed tagdata at the end of template parsing after other tags and variables have been parsed
Determines the order in which the enclosed tagdata is parsed when using process="end". Lower numbers are parsed first (default="1")
How many passes of the enclosed tagdata to make by the parser? (default is 3)
Prefix for common tag variables such as {if no_results}...{/if}
for use in any nested tags:
{exp:stash:parse unprefix="my_prefix"}
{exp:channel:entries channel="blog" dynamic="no"}
{if my_prefix:no_results}no results{/if}
{/exp:channel:entries}
{/exp:stash:set}
Getting started
Using Stash
Using Mustash
- Mustash
- Installing Mustash
- Managing variables
- Managing bundles
- Cache-breaking rules
- Mustash plugins
- Mustash Varnish plugin
- Mustash plugin development
- Mustash API
Template design patterns
Tag reference
- {exp:stash:set}
- {exp:stash:get}
- {exp:stash:block}
- {exp:stash:set_value}
- {exp:stash:append}
- {exp:stash:append_value}
- {exp:stash:prepend}
- {exp:stash:prepend_value}
- {exp:stash:copy}
- {exp:stash:context}
- {exp:stash:is_empty}
- {exp:stash:not_empty}
- {exp:stash:set_list}
- {exp:stash:get_list}
- {exp:stash:append_list}
- {exp:stash:prepend_list}
- {exp:stash:split_list}
- {exp:stash:join_lists}
- {exp:stash:list_count}
- {exp:stash:unset}
- {exp:stash:flush_cache}
- {exp:stash:bundle}
- {stash:embed}
- {exp:stash:extend}
- {exp:stash:parse}
- {exp:stash:cache}
- {exp:stash:static}
- {exp:stash:finish}
- {exp:stash:not_found}
- Short tag syntax
- Using Stash methods in your own add-ons