Skip to content

Instantly share code, notes, and snippets.

@shabaz-ejaz
Last active October 16, 2018 13:13
Show Gist options
  • Save shabaz-ejaz/1b27e0dd03ca6dddbceb2fb4e84d8dc1 to your computer and use it in GitHub Desktop.
Save shabaz-ejaz/1b27e0dd03ca6dddbceb2fb4e84d8dc1 to your computer and use it in GitHub Desktop.
Global template variables
To set a global template variable create one for the homepage template and access it anywhere like this:
[[getImageList?
&tvname=`footerServicesProvidedLinks`
&tpl=`footerServicesProvidedLinkItem.tpl`
&docid=`1`
]]
The &docid=`1` is accessing the TV from the homepage (homepage has id = 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment