Url SetItemNumber and SetChannel Example

This example shows how the viper url.setitemnumber replaces the reference to an item in an url with another item.

Smartsite SXML CopyCode image Copy Code
{url.setitemnumber('/smartsite.net?id=2&q=keys&l=nl', 4810)}
{url.setchannel('/smartsite.net?id=2&q=keys&l=nl', fun)}
Example Result CopyCode image Copy Code
/doc/Data_used_by_Code_Examples/This_is_a_sample_page.html?q=keys&l=nl
/test.net?id=DOCROOT&q=keys&l=nl