Skip to the content
Documentation

How to pass params as variable?

No ratings yet

In the following sample, the first URL is unexpectedly relative. Why? How to dynamise full/relative selection?
{def $type='full'}
{''|ezurl('no',$type)}
{undef $type}
<br/>
{''|ezurl('no','full')}

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: How to pass params as variable?

    Adrien ·

    This is because ezurl() result is "hard coded" in compiled template. So ezurl() can't be contextualy dynamic.