Skip to main content
Home  › ... 2sxc Apps

CmsContext Tutorials

Tutorial Home

Interface ICmsPlatform

With this object you can get general information about the current platform.

The .Name attribute:

The current platform name is: Dnn

  <h3>The .Name attribute:</h3>
  The current platform name is: 
  <strong>
    @CmsContext.Platform.Name
  </strong>

The .Type attribute:

The current platform type is: Dnn

  <h3>The .Type attribute:</h3>
  The current platform type is: 
  <strong>
    @CmsContext.Platform.Type
  </strong>

The .Version attribute:

The current platform version is: 9.13.2.0

  <h3>The .Version attribute:</h3>
  The current platform version is: 
  <strong>
    @CmsContext.Platform.Version
  </strong>

Source Code of this file

Below you'll see the source code of the file. Note that we're just showing the main part, and hiding some parts of the file which are not relevant for understanding the essentials. Click to expand the code

@inherits Custom.Hybrid.Razor14

<!-- unimportant stuff, hidden -->


Interface ICmsPlatform With this object... <!-- unimportant stuff, hidden -->


  <h3>The .Name attribute:</h3>
  The current platform name is: 
  <strong>
    @CmsContext.Platform.Name
  </strong>




  <h3>The .Type attribute:</h3>
  The current platform type is: 
  <strong>
    @CmsContext.Platform.Type
  </strong>




  <h3>The .Version attribute:</h3>
  The current platform version is: 
  <strong>
    @CmsContext.Platform.Version
  </strong>



<!-- unimportant stuff, hidden -->