Questions tagged [episerver]

Episerver is a web content management system and e-commerce platform based on .NET.

Episerver is an ASP.NET-based CMS (Content Management System) and e-commerce platform.

Information about Episerver development is best found at: http://world.episerver.com

General company information about Episerver is found at: http://www.episerver.com

In 2021, Episerver acquired Optimizely, and started its rebranding to gather under the Optimizely name.

Since the release of the most current versions (CMS 12 and Commerce 14), the products run on .NET 5/6.

728 questions
2
votes
2 answers

Change name, type and value of a page or block property in Episerver

We often need to refactor existing pages and blocks due to new requirements. Usually one or more properties are to be replaced by one or more new properties. Existing pages and blocks need to keep on working and it is not uncommon that settings made…
Andvik
  • 119
  • 1
  • 12
2
votes
1 answer

EPiServer 11: Convert media type programatically

Has anyone attempted to convert a media file type programmatically in EPiServer? We have a type we modeled for images, ImageFile, and a type that was added via a plugin. We don't use the type added by the plugin but found that images uploaded will,…
mrpotocnik
  • 1,101
  • 1
  • 10
  • 15
2
votes
2 answers

Block in published page has "This item is not used anywhere."

I have a scheduled job that loops through all pages of a certain type and creates a block for each page and puts it in a ContentArea. if (productPageClone.GeneralContentArea == null) { …
2
votes
0 answers

Episerver FIND result not in CMS

Sometimes when the user is deleting the page it is not being removed from FIND index. While we are trying to find the issue we want to check if the FIND result is actually there. For example, on the home page there are news which are coming from…
mohsinali1317
  • 4,255
  • 9
  • 46
  • 85
2
votes
4 answers

How to get the "Page type" for the current page. EPiServer

How can I get the Page Type for the current page. I tried CurrentPage.GetType(); but no success. I need to check if the Page Type equals a specific type in order to do something or not. Thanks
tif
  • 1,109
  • 2
  • 12
  • 32
2
votes
1 answer

Trigger an event while removing a block from a content area on a page (using "Remove" on the Content Area) and when a user click on "Move to Trash" i

I want to trigger an event whenever editor removes a block (using "Remove" on the Content Area) and when a user click on "Move to Trash" on a block in the asset pane. I find DataFactory.Instance.MovedContent event which is firing on every click on…
Janmejay Kumar
  • 309
  • 2
  • 7
2
votes
0 answers

Episerver - How to show/hide properties in the CMS block editor

I have created a new block which contains a table allowing people to enter fields they want to appear in the view. They select the type while they do this and one of the types in 'DropDown'. While entering what fields they would like they also have…
James Blackburn
  • 594
  • 4
  • 23
2
votes
1 answer

EPiServer.Core.TypeMismatchException

I am new to EPIServer, asp.net and C# development and trying to understand the following issue. I ran an instance of EPIServer CMS from Visual Studio. I opened up a pre-existing test page and added a Video Player block (containing a youtube link) to…
BrokenCode
  • 951
  • 4
  • 19
  • 43
2
votes
1 answer

EPiServer - How can I get current page data?

I am working on EPiServer. I am creating a plugin to edit content of current page. I am trying to get the data from the code following: var pageRouteHelper = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance(); var…
Grigoris Loukidis
  • 383
  • 2
  • 7
  • 23
2
votes
3 answers

Strategy for making a mobile version of a EPiServer site

I am about to help a client develop a mobile version of their EPiServer site. The mobile version should have different functionality than the regular but some content might be shared so that it won't have be maintained twice. I'm thinking about…
jimmystormig
  • 10,672
  • 1
  • 29
  • 28
2
votes
1 answer

Episerver - How should I store this data - Ideas Please

I am currently intergrating Episerver with an API. Its pretty simple, I post a form from my Episerver website, and the form data gets sent to the API and is processed by some other system. I have already made a hardcoded HTML form and got the form…
Ayo Adesina
  • 2,231
  • 3
  • 37
  • 71
2
votes
2 answers

Conditional Validation on a BlockType/PageType

I have a Block Type which has these two properties. [CultureSpecific] [Display( Name = "Display PDF Button", GroupName = TabNames.PDFCustomisation, Order = 0)] public virtual bool DisplayPdfButton { get; set;…
Ayo Adesina
  • 2,231
  • 3
  • 37
  • 71
2
votes
1 answer

Unit testing Episerver - how to add a block to a content area in the test project

We would like to unit test an Episerver validator that ensures a content area doesn't have two blocks inside it: public class LandingPageValidator : IValidate { public IEnumerable Validate(LandingPageDataModel instance) { if…
TomDane
  • 1,010
  • 10
  • 25
2
votes
2 answers

In Episerver CMS, how to create a property to display the source URL of an uploaded image or PDF asset (in the Episerver editor interface)?

Annoyingly, the MediaData class in Episerver doesn't have any basic properties like source URL, alt text, etc. I'm trying to implement a class to inherit from MediaData and provide specific properties for a certain type of media asset (PDF in this…
2
votes
1 answer

How to programmatically "translate" a page in EPiServer 10

I am currently creating a new page from code to use as my startpage for a sitedefinition which I also create from code..however.. even if I publish the newly created startpage I always end up with the following message in the CMS UI: "This content…
Inx51
  • 1,911
  • 3
  • 24
  • 44