Table of Contents

View Configuration

you are here (click to zoom) - discover the stack

A view has a lot of configuration options, but they are all explained in the edit view dialog, so we're not documenting this here. Two things of interest which you may want to read about:

  1. View-switching based on url-params
  2. Security protecting views like admin-views

View Configuration in Razor

2sxc 12.02 introduces the ability to access View some Configuration from Razor.

  • The most important properties are available on CmsContext.View - this is an ICmsView object with properties like
    • Id
    • Identifier
    • Edition
    • Name

Advanced Topics


  1. Introduced in 2sxc 1.0
  2. Made available to Razor in 2sxc 12.02