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