With the ICmsContext
object you can get general information about the current platform.
On the older Razor14
or Razor12
it's on CmsContext.Platform
.
⬇️ Result | Source ➡️
-
.Name
Current platform name is:
Dnn
-
.Type
Current platform type is:
Dnn
-
.Version
Current platform version is:
9.11.0.46
@inherits Custom.Hybrid.Razor14
<ol>
<li>
<code>.Name</code> Current platform name is:
<strong>@CmsContext.Platform.Name</strong>
</li>
<li>
<code>.Type</code> Current platform type is:
<strong>@CmsContext.Platform.Type</strong>
</li>
<li>
<code>.Version</code> Current platform version is:
<strong>@CmsContext.Platform.Version</strong>
</li>
</ol>