Zestoi release 1.1.3

5/9/2010

New Smarty Extensions

In general a smarty function now exists with the same name as the php zestoi function minus the zestoi_ prefix.e.g: the smarty {select_result} is the same as the php function zestoi_select_result().

unless the function is purely to set data, like {setval} then the extension will output the data unless a val= parameter is provided; in which case that variable will be set.

  • {expand_url template="/%site%/%seoname%.html" site=livejasmin seoname=SexyGirl} will output the url in place
  • {expand_url template="/%site%/%seoname%.html" site=livejasmin seoname=SexyGirl var=my_url} will assign the url to {$my_url}

Use the argument '_args' if you have an array that represents the args,

Example:

{foreach from=$webcams_results item=model}
{expand_url template=/%site%/%seoname%.html _args=$model}
{/foreach}

Function List

{append_results} {config} {configs} {select_result} {results} {vals} {val} {setval} {decode_url} {urlconfig} {list_channels} {expand_url} {ucfirst_sentence} {article} {feed} {webcams}

the {webcams} extension has changed from 1.1.2 in that it will display the grid *unless* the var= parameter is provided, print= is left in for compatibility with the php version of the extension/function

documentation to follow