Take the community feedback survey now.

  • Posted on: May 18, 2025

    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,...

  • Posted on: May 18, 2025

    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 &&...

  • Posted on: May 18, 2025

    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...

  • Posted on: May 13, 2025

    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...

  • Posted on: May 13, 2025

    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"));

1 2 Last
 Workplace: Episerver Community
 Community Level: Citizen

Syndication and sharing