EPiServer

Rendering current page in ContentArea

4 June 2016 EPiServer No comments

In previous article I started preparing custom iframe view. For the news page I displayed teaser text. In this post I will describe how to render current page in ContentArea.
see also - current page in ContentArea (more…)

Page template preview

30 May 2016 EPiServer No comments

In one of our projects we use News page type to show the latest Company news. The news page is an article with title, image, teaser, main content and “See also” section. The section is Content Area with links to other news pages. Editor manually selects few news that should be displayed as related with currently edited news page. Each section item is rendered using custom partial page template. When editor creates news page, he doesn’t know how the page will look like in See also version. That’s why I tried to prepare news page template preview. It will be a custom edit mode view available on News Page.
see also mock (more…)

TextArea with statistics

22 May 2016 EPiServer, EPiServer properties No comments

For the plain text like introductions or short descriptions we use TextArea property. It could be useful for editor to see how many characters and words he already typed. It gives an overview of how much space for new value is required. That’s why I decided to implement property TextArea with statistics.
TextArea with statistics
(more…)

How to disable creating new blocks in Content Area

18 May 2016 EPiServer, EPiServer properties 1 comment

In some scenarios we would like to disable creating new blocks functionality on Content Areas. Then editors will add only existing items using drag and drop functionality. We could implement one of few solutions to meet this requirement. It can be EditorDescriptor with client widget or quick hack enclosed in 10 lines of backend code.
Content Area no create new link
(more…)

How to render line breaks for string property

13 May 2016 EPiServer, EPiServer properties 2 comments

In one of out projects I had a requirement to prepare a multiline text property that supports line breaks. It had to be a standard textarea field with no HTML elements just plain text with new line support. The dojo editor didn’t require changes, because line breaks were stored during saving property data. Only value renderer had to be implemented.
TextArea editor
(more…)

How to convert VersionStatus to string

28 April 2016 EPiServer No comments

I one of our projects I had to list pages and show their properties like page name, author, publish date and version status. VersionStatus property is enum type. It would be better to display “Scheduled for Publish” instead of DelayedPublish text. (more…)

Client module with server side parameters

25 April 2016 EPiServer, EPiServer properties No comments

Few weeks ago I described how to extend Tools menu with additional Move to trash command. Trash button was displayed only for News pages. For all other page types button was not displayed. What if we need to show the button also on the Article type? We could add another hardcoded Page Type condition to dojo component. It will work but it sounds like a fragile solution. It would be better to store all supported types on the server and send serialized settings to the client module.
server available types (more…)

PropertyURL issue in EPiServer 7.19.2

15 April 2016 EPiServer No comments

A while ago my colleges did EPiServer migration from version 7.0 to 7.19.2. It’s an ASP.NET Web Forms based solution. The solution was tested and it looked like all features were working. But last week they find out a problem with URL property. All links in the editor had format “/Template/Pages/…”. The property was used only on one page that’s why the issue didn’t appear earlier.
broken URL selector
(more…)

Additional Move to Trash command

12 April 2016 EPiServer No comments

In one of our project we have a News List page with the  limitation of one content type that could be created under. There are no subpages and containers structure so after a while a list become really huge. We decided to hide news list children and display the them in a different way. But then it was not possible to remove news, because “Move to trash” command is available only in page tree item context menu. I tried to add additional Move to Trash command under page tools menu.
Additional trash icon
(more…)

Updated ContentArea with images

25 March 2016 EPiServer, EPiServer properties No comments

Few months ago I prepared extended version of ContentArea property widget. Editors can use it to preview item thumbnail. In EPiServer 9 the ContentArea widget implementation changed so I updated extension to support the newest version. The UI is the same as before – each item displays content name and image thumbnail, to see larger image we need to click on the element.

ContentArea editor with image preview
(more…)