Page tree
Skip to end of metadata
Go to start of metadata

With Smart Templates version 1.2 and newer you can pass variables from request to a Smart Template

Here is how:

  1. Add a Smart Template to you page

  2. Ensure you have checked the option
  3. Then inside the Smart Template you can put something like
  4. Then in URL you can do the following

    https://wiki.vertuna.com/display/ST/Using+request+parameters+with+Smart+Templates?name=John

     



  5. And this is the result

  6. To sum up - variables from request (URL) can be used within the Smart Template and their names are prefixed with "req". A variable "name" from URL becomes a "${reqname}" in a template

${reqname}

  • No labels