HREF_PARAM


Function serves for simplification of a conclusion of parameters in references.
Replaces with itself a construction like <a href=/abc?<TMPL_if a>param_a=<TMPL_var URLESCAPE(a)></TMPL_if>... to <a href=/abc?<TMPL_udf HREF_PARAM("param_a", a)> Function can accept one, two or three parameters.
First parameter is name. Second parameter - value. Third (optional) parameter specifies, whether it is necessary to deduce result at absence of the second parameter. Allowed vaues are "y", "yes", "n", "no" (default - "y").

Example:
<TMPL_udf HREF_PARAM("param_name", param, "yes")>

<TMPL_udf HREF_PARAM("param_name", param)> (It is equivalent previous)

<TMPL_udf HREF_PARAM("param_name", param, "n")>


Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp