Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Templates variables

Alexanderius edited this page Feb 14, 2016 · 4 revisions

You can use variables provided by the framework in any HTML templates:

  • {SV:SiteUrl} - site url

Example: will be http://mysite.org if current page link is http://mysite.org/add/user

  • {~} - site virtual path

Example: will be /mysite if current page link is http://somedomain.org/mysite/add/user will be empty if current page link is http://somedomain.org/add/user

  • {SV:TemplatesDir} - templates location

Example: will be Templates if Environment.TemplatesPath is Templates

  • {SV:Style} - templates location

Example: will be Main if Environment.SiteStyle is Main

  • {SV:Language} - current request language

Example: will be en if LanguageManager.Language is en

  • {SV:LanguageExt} - current request language with dot

Example: will be .en if LanguageManager.Language is en

<< Previous page Next page >>

Clone this wiki locally