#5 CmsContext.Module – ID, etc.
Interface ICmsModule
Get information about the module context the code is running in.
Output
The .Id attribute:
The id of the current module:
4480
<h3>The .Id attribute:</h3>
The id of the current module:
<strong>
@CmsContext.Module.Id
</strong>
#5 CmsContext.Module – ID, etc.
@inherits Custom.Hybrid.Razor14
@using ToSic.Razor.Blade;
<!-- unimportant stuff, hidden -->
<div @Sys.PageParts.InfoWrapper()>
@Html.Partial("../shared/DefaultInfoSection.cshtml")
<div @Sys.PageParts.InfoIntro()>
<h2>Interface ICmsModule</h2>
<p>
Get information about the module context the code is running in.
</p>
</div>
</div>
<h3>The .Id attribute:</h3>
The id of the current module:
<strong>
@CmsContext.Module.Id
</strong>
@* Footer *@
@Html.Partial("../Shared/Layout/FooterWithSource.cshtml", new { Sys = Sys })