Created
March 22, 2012 10:49
-
-
Save croxton/2157654 to your computer and use it in GitHub Desktop.
Passing a tag as a parameter - best practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Put parameters on separate lines, and be consistent in the use of quotes: double quotes for params on the main tag, single quotes for params in the tag passed as a parameter: | |
{exp:stash:set_value | |
name="ref" | |
type="snippet" | |
output="no" | |
value="{exp:stash:get name='ref_{entry_id}' type='snippet'}" | |
parse="inward" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly how we do it. Glad you took a minute to write it down.