Blog entries tagged with EPiServer CMS 5

EPiServer and ASP.NET AJAX

by: Ted Nyberg (Ted & Gustaf)

Script error after ASP.NET AJAX postback in EPiServer I had two seemingly identical EPiServer websites, each running EPiServer CMS 5 R2 SP1. However, on one of the websites a peculiar script error occured after the second postback in an ASP.NET AJ... [ Read full article ]

29 June 2009  2 Comments

Property is contained in a page/control/template that does not have a current page

by: Ted Nyberg (Ted & Gustaf)

I recently came across a website for a hospital and noticed an error message that seemed familiar: The error message states: [Error: Property is contained in a page/control/template that does not have a current page.] Solution The solution/explana... [ Read full article ]

19 June 2009  2 Comments

Javascript errors in EPiServer edit and admin mode

by: Ted Nyberg (Ted & Gustaf)

Problem description Javscript errors in the EPiServer UI can produce pretty discrete anomalies, depending on your browser debug settings. For example, the EPiServer admin mode may appear to be working correctly, but you can’t do things like add... [ Read full article ]

13 June 2009  0 Comments

Managing e-mail subscriptions in EPiServer

by: Ted Nyberg (Ted & Gustaf)

Background E-mail subscription in EPiServer CMS 5 is based on ASP.NET profiles. Starting and stopping subscriptions through code is easy, but I was missing a plugin where administrators could easily add new subscribers, remove existing subscriptio... [ Read full article ]

14 April 2009  1 Comments

Adding a custom plugin button to unpublish a page in EPiServer

by: Ted Nyberg (Ted & Gustaf)

I was recently in a discussion where the topic of unpublishing pages in EPiServer came up. Fredrik Haglund mentioned that some customers want to have an “ Unpublish ” button, and I agree. Some clients are fine with setting the Stop Publish propert... [ Read full article ]

12 February 2009  16 Comments

Check if a dynamic property has been specified on the current page

by: Ted Nyberg (Ted & Gustaf)

Dynamic properties versus page properties As you probably know, dynamic properties are like page properties in many ways, except they do not need to be set specifically on a per-page basis. Dynamic property values are inherited in the page tree.... [ Read full article ]

03 February 2009  7 Comments

Customize the search experience with Search Server 2008

by: Ted Nyberg (Ted & Gustaf)

I recently posted an article on how to use Search Server 2008 for local searches on a website or intranet . In this post I’ll focus on the search query XML schema used by Search Server 2008 and how to customize search queries by specifying what... [ Read full article ]

23 January 2009  3 Comments

Using EPiServer and Microsoft Search Server 2008

by: Ted Nyberg (Ted & Gustaf)

If you're interested in EPiServer and Microsoft Search Server you may also want to have a look at the post  Customize the search experience with Search Server 2008 . Introduction Microsoft Search Server 2008 is a stand-alone search server built up... [ Read full article ]

20 January 2009  19 Comments

Adding multiple links using the Link Collection property in EPiServer

by: Ted Nyberg (Ted & Gustaf)

Background The LinkItemCollection class was a truly appreciated addition when EPiServer CMS 5 R2 was released. Part of the EPiServer.SpecializedProperties namespace the LinkItemCollection class is a property that editors can use to add multiple... [ Read full article ]

12 December 2008  17 Comments

EPiServer CMS 5 R2 gives 'Sys' is undefined on IIS7

by: Ted Nyberg (Ted & Gustaf)

Yet another troubleshooting tip for the dreaded 'Sys' is undefined error This post won't reveal any exciting new features, techniques, or patterns. However, if you're troubleshooting some ASP.NET AJAX errors relating to EPiServer CMS 5 R2 on IIS7... [ Read full article ]

09 December 2008  20 Comments

Localize page type and page property names in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This post shows how to translate page type and property names and descriptions to have them appear in the correct language in the editor interface when globalization is enabled for an EPiServer web site. Strategy for page type and property names a... [ Read full article ]

08 September 2008  9 Comments

Run a scheduled job as a specific EPiServer user

by: Ted Nyberg (Ted & Gustaf)

As noted in my post about how to Create a custom scheduled job in EPiServer all scheduled runs will execute as an anonymous user whereas jobs that are executed manually are run as the current EPiServer user. How to log on programmatically as a... [ Read full article ]

18 August 2008  3 Comments

How to get the simple address of a page in EPiServer

by: Ted Nyberg (Ted & Gustaf)

The following code snippet shows how to retrieve the simple address of an EPiServer page. If you want to retrieve the friendly URL of an EPiServer page instead, please see my post on How to get the friendly URL of a page in EPiServer CMS .... [ Read full article ]

15 August 2008  3 Comments

Implementing a custom URL rewrite provider for EPiServer

by: Ted Nyberg (Ted & Gustaf)

Introduction I'm a firm believer in avoiding querystring parameters in URLs, especially for public web sites. Security, SEO and esthetics are a few reasons why. Custom URL rewriting can help you avoid those ugly ampersands and question marks, even... [ Read full article ]

24 July 2008  9 Comments

When the edit interface works but all pages return 404

by: Ted Nyberg (Ted & Gustaf)

This is just a friendly reminder about what to do when all EPiServer pages return a plain 404 File not found, but the edit and admin interfaces work perfectly well. You may even notice that the site works perfectly well using the ASP.NET Developme... [ Read full article ]

30 June 2008  1 Comments

Using a single domain strategy with multiple languages in EPiServer

by: Ted Nyberg (Ted & Gustaf)

Introduction This post covers one way of enforcing a domain strategy for multi-language (or multi-division) sites. There are two common scenarios for multi-language site domain strategies: Use one top domain per language In this case, www.mysite.c... [ Read full article ]

04 April 2008  4 Comments

Using LINQ and EPiServer

by: Ted Nyberg (Ted & Gustaf)

Just as a brief proof of concept I decided to use a LINQ statement to retrieve and sort a list of EPiServer pages. If you haven't yet come across LINQ I would recommend Scott Guthrie's post on using LINQ . LINQ can be used to query a number of... [ Read full article ]

10 March 2008  104 Comments

Modify and publish a page programmatically

by: Ted Nyberg (Ted & Gustaf)

Inspired by Marek's post on modifying existing pages I  decided to complement my post on programmatically publishing new pages with a post on how to modify and publish existing pages in EPiServer. 1. Why you can't modify a PageData object As Marek... [ Read full article ]

06 March 2008  5 Comments

Search by language branch in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This post is a complement to my previous post about searching pages with EPiServer . I have gotten a few questions about how to limit a page search to include pages from a specific language branch. Since this is truly a basic requirement when... [ Read full article ]

02 March 2008  5 Comments

Check to see if a page exists for a specific language branch

by: Ted Nyberg (Ted & Gustaf)

Have you ever wanted to know if a specific EPiServer page exists for a specific language? I recently came across an implementation that looked something like this: try { DataFactory.Instance.GetPage(myPageLink, new LanguageSelector( "en" ); } catc... [ Read full article ]

11 February 2008  2 Comments

Programmatically configure customErrors redirects

by: Ted Nyberg (Ted & Gustaf)

I previously posted a possible solution for handling 404 exceptions in EPiServer websites, but here's an alternative and possibly more elegant way of configuring custom error redirects for EPiServer. What I wanted to accomplish I wanted to be able... [ Read full article ]

09 February 2008  11 Comments

How to get the friendly URL of a page in EPiServer CMS

by: Ted Nyberg (Ted & Gustaf)

Maybe there are other posts about this, but I thought I'd share an easy way of getting the friendly URL of a page since I've gotten questions about it on numerous occasions: public static string GetFriendlyURL( PageReference PageLink, string URL) ... [ Read full article ]

07 February 2008  9 Comments

Use EPiServer Manager when upgrading to CMS 5 SP1

by: Ted Nyberg (Ted & Gustaf)

...or read this once you've ignored that piece of advice Eager to update to EPiServer CMS SP1 I got a bit careless. I finished my development locally, published and tested it on our staging server and then finally published it to the live server. ... [ Read full article ]

06 February 2008  3 Comments

Disable URL rewriting for specific URLs

by: Ted Nyberg (Ted & Gustaf)

There comes a time when you need to prohibit URL rewriting for specific URLs within your EPiServer CMS website. For example, I've implemented an ashx handler that is used to deliver vCard files on our company's web site. If I would insert a regula... [ Read full article ]

17 January 2008  67 Comments

Status property always returns VersionStatus.Published

by: Ted Nyberg (Ted & Gustaf)

I ran into some interesting anomalies involving "Access denied" when trying to fetch published pages using the GetChildren() method. I tried to determine whether or not a page was published by checking the Status property and making sure it was... [ Read full article ]

10 January 2008  2 Comments

Unable to send e-mail without local SMTP server

by: Ted Nyberg (Ted & Gustaf)

When you try to send e-mail through an external SMTP server using the System.Net.Mail namespace classes, you may encounter an error saying " Cannot get IIS pickup directory". Often this has to do with permissions, but I recently discovered another... [ Read full article ]

12 December 2007  4 Comments

Ted Nyberg (Ted & Gustaf)

About me

I'm an EPiServer solution architect and web developer at Ted & Gustaf in Stockholm, Sweden.

I cross-post and publish additional articles on

You'll find my contact details here.

EMVP, EPiServer Most Valued Professional

MCPD, MCTS and MCP logos

Follow me on Twitter

Add to Technorati Favorites



Tag cloud

EPiTrace logger