Template operators
Overview of available template operators in the kernel
URL operators
The URL operators takes a URL and modifies it in some way, they allow for easy change
of sitedesigns. The syntax of all the operators are similar with only their name varying.
The nVH setup is prepended to the URL if one is used to allow seamless VH/nVH setups.
They take one parameter, which defaults to double, which specifies the quotes which are wrapped
around the url.
The quote values are:
- double - Uses double (") quotes
- single - Uses single (') quotes
- no - Uses no quotes
These operators will also be available as template functions which means that they can wrap
around multiple template elements, either that or a concat operator will be created.
Using it as a function.
{ezdesign}stylesheets/{$style_name}.css{/ezdesign}
Using it with concat
{concat("stylesheets/",$style_name,".css")|ezdesign}
ezdesign
Prepends the current sitedesign to the url, if the file does not exist in that design the
standard sitedesign is used instead.
{"stylesheets/style.css"|ezdesign}
becomes
"/design/mydesign/stylesheets/style.css"
ezimage
Prepends the current sitedesign to the url with the image subdirectory,
if the file does not exist in that design the standard sitedesign is used instead.
{"search.png"|ezimage(single)}
becomes
'/design/mydesign/images/search.png'
ezurl
Only prepends the nVH directory if one exists.
exturl
Not done yet, the exact nature of this operator is not clear.
|