Reindexing soft links

6 October 2015 Admin mode, EPiServer No comments

For one of our customer websites we developed new features, but also get rid of some unused functionality. During the implementation we had to change some properties types and move them into different models. We didn’t want to create drafts for published pages, so for saving content we used GetForceCurrentVersionSaveAction extension method.

(more…)

Content references list with preview

30 September 2015 EPiServer, EPiServer properties 1 comment

Few months ago I prepared ContentArea property with image thumbnails and image preview support. The new EPiServer has Content References list property which already implements thumbnails for list items. In Content references list with preview property I tried to extend standard editor and add support for image preview as well. (more…)

How to hide Display Options for specific ContentArea

21 September 2015 EPiServer, EPiServer properties 1 comment

The “Display Options” is a global settings list defined in DisplayOptions service. It’s used together with ContentArea property to set the layout for the content items. Sometimes editor should not be able to set options on each ContentArea because in some cases they might not be used in the template implementation. Last week I prepared a code for hiding Display Options for specific ContentAreas.

(more…)

EPiServer Search diagnostic tool

11 September 2015 Admin mode, EPiServer 2 comments

EPiServer Search is integrated with CMS build-in search feature. It’s a very useful functionality that allows users find any content across whole website.

For many times I saw several forum threads and blog posts about solving the problems related to the installation of this service. In recent projects in which I was involved we faced some problems regarding empty results. (more…)

Comparing list properties

6 September 2015 EPiServer, EPiServer properties 2 comments

Probably in every EPiServer project there will be a need to store a list of links to your content pages. EPiServer.CMS.UI 8.6.0 introduced a new multiple ContentReference property. Usually we could use a single property to store a collection of links. For example when building a media slideshow or when displaying links in a site footer. Using EPiServer there are several possibilities of implementation. Until now there were two built-in properties – ContentArea and LinkItemCollection, and the new multiple ContentReference is yet another interesting solution. I’ll try to compare those properties.

(more…)

Resolving page URL

23 August 2015 EPiServer No comments

In one of our project I had to refactor a code responsible for generating XML feed. The feed contains information like title, description and URL.

There are three languages enabled for the site: English, Swedish and Norwegian. All pages was first created in English and some page translations are missing for Norwegian and Swedish. That’s why language fallback behavior is enabled. Missing translations should be displayed in English.

(more…)

Using dojo topic.publish and topic.subscribe

18 August 2015 EPiServer, EPiServer properties 3 comments

As we know EPiServer edit mode components, both built-in and custom, are implemented in a modular way. It means that they are isolated to each other. Yet when developing new features sometimes there is a need of creating dependencies between the widgets. It’s necessary when changing state of one widget should affect state of another one. For example when our component depends on current context. When editor selects a node from three structure the component should be notified about this event and take a proper action. (more…)

Content Selector property with preview

31 July 2015 EPiServer, EPiServer properties 9 comments

I prepared a small improvement for Content Selector property. Standard property is a label displaying selected content name and a button used to selecting a content.
ContentSelector - property
After editor selects an item it’s hard to determinate the ID of the selected content. To do this you need to open the content tree dialog once again, hover over selected tree node and check the tool-tip value. You may copy ID, replace it in the browser URL and edit the page… It’s really time consuming. (more…)

How to extend CheckboxList

10 July 2015 EPiServer, EPiServer properties No comments

A while ago I saw a forum question about how to Enable/Disable SelectItem in SelectionFactory. I thought that it could be interesting to describe how to implement it. (more…)

Localizable media assets

6 July 2015 EPiServer 4 comments

My colleague got a task to create a way of localizing file metadata. The requirements were to be as close to regular page translations that come out of the box. Unfortunately EPiServer does not support this kind of functionality yet so he needed to code it himself.
(more…)