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

Templates variables

Alexanderius edited this page Jun 26, 2019 · 4 revisions

Templates variables

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

  • {SiteTitle} - site title from the string table

  • {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} - current site style

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

  • {SV:LanguageCultureName} - Thread.CurrentThread.CurrentCulture culture name

Example: en-US

  • {SV:LanguageCultureNameExt} - Thread.CurrentThread.CurrentCulture culture name with dot

Example: will be .en-US

<< Previous page Next page >>

Clone this wiki locally