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

CmsContext Tutorials

Tutorial Home

Interface ICmsModule

Get information about the module context the code is running in.

The .Id attribute:

The id of the current module: 436

  <h3>The .Id attribute:</h3>
  The id of the current module: 
  <strong>
    @CmsContext.Module.Id
  </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 ICmsModule Get information... <!-- unimportant stuff, hidden -->


  <h3>The .Id attribute:</h3>
  The id of the current module: 
  <strong>
    @CmsContext.Module.Id
  </strong>



<!-- unimportant stuff, hidden -->