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

Razor Page Service Tutorials

Tutorial Home

Learn how to use IPageServices to set page Title, Description and Keywords. Also add headers, JsonLD and more.

This needs 2sxc 12.02 but will work on both Dnn and Oqtane. For older versions, use the RazorBlade implementation which only works on Dnn.
Read about the IPageService in the Docs.


Examples for Modifying Page Headers

  1. Page Title, Keyword, Description
    Get/Set Page Title, Keywords, Description and set meta-tags and more.
  2. Base tag in header
    Add a base tag to the header - which works correctly in DNN. Important for SPA JS applications.
  3. Page Icons for Favicon, Apple/Android
    Add various combinations of icons to the page header
  4. Meta and other Tags in header
    Add a base tag to the header - which works correctly in DNN. Important for SPA JS applications.
  5. JSON-LD Headers for SEO
    Add JSON-LD (Linked Data) headers for Google
  6. Open-Graph headers for Social Media
    Add Open-Graph data headers for Facebook, Twitter and other sharing-systems