Tokens are small bits of code that let you integrate LightCMS's dynamic content management functionality with your website designs.  This section provides detailed information about our tokens and how to utilize them.

URL

Token
<$url/$> 
Purpose This token inserts the URL of the current web page as it is displayed in the address bar of the browser.
Attributes
  • encode= if set to "true", the token will output an encoded URL (i.e. http:%3a%2f%2fwww.publishpath.com) which is sometimes needed for use in query strings or other applications. The default is false.
  • stripQueryString= if set to "true", the token will remove any query string arguments that are appended to the URL. The default is false.
Example Usage
Insert the URL of the current page in an encoded form.

<$url encode="true" /$>