Logo
Logo
  • Blazor CMS Home
  • Oqtane Tutorials
  • Blazor CMS Home
  • Oqtane Tutorials
Oqtane Tutorials
Oqtane Tutorials

Context Tutorials

Tutorial Home › Context
Set Open-Graph headers for Social Media using the  IPageService
#1 Work with the Context (Page, Site, etc.)
Working with Entity (Item) Values
The samples can differ based on your Razor base class or if you're running an old version.
Switch to Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)
Requirements
  • 2sxc 10.20
Resources
  • CmsContext
  • ICmsContext
  • IDynamicCode
Related
  • Hybrid Razor - Code which Runs on Dnn and Oqtane

Work with the Context (Page, Site, etc.)

Whenever you need to know about the current environment, you need Context information. These are the contexts you should know about:

  1. Platform
  2. Site
  3. Page
  4. Module
  5. View
  6. User

 

Set Open-Graph headers for Social Media using the  IPageService
#1 Work with the Context (Page, Site, etc.)
Working with Entity (Item) Values
  • 2sic internet solutions
  • Langäulistrasse 62, 9470 Buchs SG, Switzerland
  • +41 81 750 67 77
Login