Take the community feedback survey now.
Take the community feedback survey now.
CustomContentAreaRenderer is a specialized class that overrides the default ContentAreaRenderer. It customizes the rendering behavior for content area items, specifically by rendering content items without wrapping them in a surrounding element,...
public bool IndexContent(int contentId, bool contentOnly, bool childrenOnly, string language) { // Retrieve the content var contentReference = new ContentReference(contentId); var contentItems = new List (); if (contentReference != null &&...
Create a new Controller called CustomMenuController and decorate with [Authorize(Roles ="CMSAdmins")] so that it will be accessed by admins only namespace AdminMenu.Controllers { [Route("episerver/CustomMenu")] [Authorize(Roles ="CMSAdmins")] publ...
When using Url.ContentUrl() in Optimizely 12, encodes spaces as + in the query string. If you want to encode the spaces as %20, use the below helper method. public static string GetEncodedUrl(string href) { var decodedHref = System.Web.HttpUtility...
Optimizely CMS 12 provides a Utility function to retrieve Content Reference from a Guid by ussing the below static method. var contentReference = PermanentLinkUtility.FindContentReference(new Guid("9812C961-4A51-4C8C-9580-0DED7764C1B2"));