EPiServer

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…)

Increasing command timeout of EpiDeploy

22 June 2015 EPiServer, EPiServer migration 3 comments

Last week I started updating EPiServer platform to version 8. The nuget packages were installed without problems, but the update-EPiDatabase powershell command failed because of SQL execution timeout. I was able to run all SQL script via SQL Management Studio. And I did it, but on my local machine only. Of course, I had to upgrade EPiServer database on other developers computers, test, staging and production servers. I was thinking about how to inject custom command with increased timeout. (more…)

Displaying related content in edit mode

17 June 2015 EPiServer 13 comments

Few editors asked us if there is a possibility to display list of all content (both block and pages) referenced by currently edited page. I’ve looked in the edit mode Tools menu, Publish menu and context menu actions. The only place where I found this functionality was “Move to trash” command. When editor is removing the page the confirmation dialog will list all references to deleted page. (more…)

How to prevent from rewritting internal links

1 June 2015 EPiServer 2 comments

I prepared an image gallery which could be used with several page type models and provides images collection. The gallery is based on Javascript plugin. Gallery images are not rendered directly on the page. They are loaded on demand by the plugin. That’s why I need another version for crawlers where all images are available when the page is loaded. (more…)

Inline checkbox editor

24 May 2015 EPiServer, EPiServer properties No comments

In the last post I described how to extend the All properties view. I changed the behavior of forms editing by subscribing to events between widgets. But code did not affect the On Page edit view. It was possible to edit message details, while it was not possible to change the ShowMaintenanceMessage bool property state. (more…)

Extending “All properties” view

11 May 2015 EPiServer 1 comment

In EpiServer 7.5+ you can create a custom view in Edit Mode. This is a powerful extension point to enhance the user experience. With few lines of code we are able to display the Content in a specific way. One of the built-in views is “All properties” view which allow to edit the form properties.

In this post I’ll show you how to extend “All properties” view and to create dependencies between the form properties. (more…)