How can I add parameter to link from snippet?
[[~34? &p=[[!getUrlParam? &name=
p&int=
1]]
]]
This is not working (none snippet don`t work). Why?
Use makeUrl:
// snippet getUrlParam
// if you have to get a url param: $param = isset($_GET['id']) ? $_GET['id'] : 0;
$url = $modx->makeUrl(34,'',array('p' => $param));
return $url;