1

Please can someone remind me how to create a CMS-safe URL in Smarty Templates?

Thanks

1 Answer 1

3

{crmURL p="civicrm/points/grant" q="cid=$cid&type=$type"}

^this

The p is the address of the page The q is the list of parameters The domain is added first

So the above code (with $cid=A and $type=B) translates into:

http://example.org/civicrm/points/grant?cid=A&type=B

1
  • Hi John, this looks like it could be useful to others. Could you edit your answer to say a bit more and explain what the different parameters mean? I think that could make it even more helpful. Jan 14, 2017 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.