Blog entries tagged with Code Samples

Create EPiServer Composer functions with Page Type Builder

by: Ted Nyberg (Ted & Gustaf)

In this post we look at how to create Composer functions, such as layout blocks and content blocks, with Page Type Builder. [ Read full article ]

03 September 2011  0 Comments


Create an EPiServer Composer page type with Page Type Builder

by: Ted Nyberg (Ted & Gustaf)

Here we look at how to create a new Composer page type and template using EPiServer Composer 4 and Page Type Builder. [ Read full article ]

03 September 2011  0 Comments


PowerShell for EPiServer – cheat sheet – Part 2

by: Adam Najmanowicz (Cognifide)

  Most of this post is also based on the Microsoft’s Windows PowerShell Quick Reference however despite the sharing scripting runtimes the nature of the both shells differ considerably as described in the previous post: PowerShell for EPiServer –... [ Read full article ]

10 May 2011  0 Comments


Create new dynamic content in EPiServer

by: Ted Nyberg (Ted & Gustaf)

One way to create more dynamic page templates in EPiServer is to use dynamic content. Here's an example of how to create dynamic content including dynamic content settings. [ Read full article ]

28 September 2010  0 Comments


Unit test an EPiServer 6 website using Visual Studio 2010 and MSTest

by: Ted Nyberg (Ted & Gustaf)

When unit testing it can be tricky being dependent on a web context. In this post we'll look at how to start EPiServer and run it outside of a web application to make unit testing easier. [ Read full article ]

09 August 2010  0 Comments


Loading and saving a custom property value with PropertyUserControlBase

by: Ted Nyberg (Ted & Gustaf)

The PropertyUserControlBase class in Template Foundation has been updated with two new events called PropertyLoad and PropertySave, making it easier to load and save the property value. [ Read full article ]

30 July 2010  0 Comments


Custom properties in EPiServer using user controls

by: Ted Nyberg (Ted & Gustaf)

EPiServer Template Foundation makes it a lot easier to create custom properties based on user controls. In this post we go through the steps needed to create a new custom property in EPiServer and use user controls for rendering the property in ed... [ Read full article ]

25 July 2010  0 Comments


Introduction to EPiServer Template Foundation

by: Ted Nyberg (Ted & Gustaf)

In this post we’ll look at how to include EPiServer Template Foundation in your EPiServer project in order to use the different page type base classes and publish EPiServer pages using Windows Live Writer through the MetaWeblog API. [ Read full article ]

19 July 2010  0 Comments


New EPiServer website using Template Foundation

by: Ted Nyberg (Ted & Gustaf)

In this post we'll look at how to set up an EPiServer CMS 6 website from scratch based on EPiServer Template Foundation. [ Read full article ]

19 July 2010  0 Comments


ClassFactory not initialized exception in InitializableModule

by: Ted Nyberg (Ted & Gustaf)

The new initialization system in EPiServer 6 can be used to execute logic in a specific order on startup. This post explains how to ensure your startup modules are executed after the DataFactory has been initialized properly. [ Read full article ]

01 July 2010  0 Comments


Another day, another page provider

by: Allan Thræn

Here’s a little quick one. A page provider that doesn’t contain any pages, but simply replicates a structure found elsewhere in your page tree. It’s registered very simple in episerver.config, only custom setting is which “root” is should replicat... [ Read full article ]

29 June 2010  1 Comments


Codemania 2010 Continued

by: Allan Thræn

I just realized that I in this previous post forgot to share my “search page provider” – a page provider that searches for the newest pages in a specific page type using Johan Olofssons LINQ to PageData – and returns the results as children. It’s ... [ Read full article ]

16 June 2010  2 Comments


Attach EPiServer event handlers on startup using InitializableModule

by: Ted Nyberg (Ted & Gustaf)

Explanation of the new InitializableModule concept in EPiServer 6 which is used to implement functionality that should execute when an EPiServer site starts, for example to attach event handlers. [ Read full article ]

21 May 2010  0 Comments


Create a new page language branch programmatically in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This article describes how to create a new language branch programmatically for an existing page in EPiServer. [ Read full article ]

21 May 2010  0 Comments


Create a page programmatically in EPiServer

by: Ted Nyberg (Ted & Gustaf)

Code sample demonstrating how to create new EPiServer pages programmatically using the DataFactory class. [ Read full article ]

21 May 2010  0 Comments


Search pages in EPiServer using FindPagesByCriteria

by: Ted Nyberg (Ted & Gustaf)

How to find pages in EPiServer by searching using the FindPagesWithCriteria method. The code sample describes how to search in EPiServer using criterias based on page properties. [ Read full article ]

20 May 2010  0 Comments


One page - Many fathers: a solution using EPiServer Events

by: Anders Hattestad

In a tree structured CMS system where all pages have only one father there are times when you would like to display one page in different places. And you even would like to make the same page appear to the end user as 2 different pages,with 2... [ Read full article ]

16 February 2010  30 Comments


Attaching a Page Provider programmatically

by: Allan Thræn

Configuration vs Code – it’s a classic dilemma. Both have their ups and downs. However, I am the kind of guy that tends to prefer code over configuration (you already guessed, I’m sure). Today I got a question if it’s possible to attach a page... [ Read full article ]

26 January 2010  0 Comments


Building a Twitter Workflow

by: Allan Thræn

For a long time I’ve wanted to play more with Windows Workflow Foundation (WWF) in conjunction with EPiServer, and today I finally did  it. And luckily it turned out to be a lot less scary than I had imagined. First of all, I decided to check out ... [ Read full article ]

06 January 2010  3 Comments


Easy Enum property for EPiServer

by: Adam Najmanowicz (Cognifide)

One of the most frequently and eagerly used programming constructs of the Microsoft.Net Framework is Enum. There are several interesting features that make it very compelling to use to for all kinds of dropdowns and checklists: The bounds factor –... [ Read full article ]

26 December 2009  0 Comments


Introduction to the PageTypeBuilder project

by: Ted Nyberg (Ted & Gustaf)

An introduction to Joel Abrahamsson's PageTypeBuilder project for EPiServer. Here I go through the basics of defining a strongly typed page type including page type inheritance. [ Read full article ]

08 December 2009  0 Comments


How to set up an EPiServer website

by: Ted Nyberg (Ted & Gustaf)

This post mainly aims to complement Frederik Vig’s posts on setting up a new EPiServer site with some comments and pointer that I find valuable. [ Read full article ]

08 December 2009  0 Comments


Itera.Media a easy solution for media files

by: Anders Hattestad

How many times have you made a property called IntroImage and used that to display an intro image on a page? Then how often have you gotten a question about how do we add a flash, or can we have this image a bit smaller/larger on a particular page... [ Read full article ]

30 October 2009  6 Comments


LanguageManager using DynamicDataStore

by: Anders Hattestad

I have looked forward to the new propertbag concept in CMS6. I have always wanted a store for different kind of data/settings that are not pages. One area I find troublesome is the language xml files. If you have more than one server you need to... [ Read full article ]

22 October 2009  1 Comments


CMS 6: DropDownList Property Type

by: Allan Thræn

Finally, I get to make an old dream of mine (and a request I’ve heard 100000 times) come true – A DropDownList property type where you can customize the options in Admin mode. Sure, we’ve had lists before as property types (Like ‘Dynamic List’)– b... [ Read full article ]

20 October 2009  8 Comments


CMS 6: PageType Search Provider

by: Allan Thræn

Inspired by Magnus’ excellent blog post earlier today I just had to throw together a little search provider of my own. And yes, it really was as simple as he made it seem. In my little example here I wanted to make the PageTypes search-able, so I... [ Read full article ]

20 October 2009  0 Comments


Article Ratings with Dynamic Data Store

by: Allan Thræn

A classic need I’ve come across a bunch of times is people wanting to store various counters like user ratings or view counters in EPiServer CMS. Up till CMS 5 they’ve been left with a few choices: Install EPiServer Community it has both features.... [ Read full article ]

20 October 2009  3 Comments


Introduction to EPiServer Dynamic Data Store (DDS)

by: Ted Nyberg (Ted & Gustaf)

This post provides an introduction to the Dynamic Data Store, or DDS, which was introduced with EPiServer 6. [ Read full article ]

12 October 2009  0 Comments


Extending User Search to Support FirstName and LastName

by: Mari Jørgensen

  Since the introduction of EPiServer CMS 5, the ASP.NET membership, role and personalization provider model have replaced the standard v.4 EPiServer user. ASP.NET 2.0 provides a profile system where websites can store user specific information, b... [ Read full article ]

10 October 2009  0 Comments


Parse an EPiServer XHTML property with Dynamic Content

by: Ted Nyberg (Ted & Gustaf)

Render Dynamic Content without the Property control Outputting EPiServer property values are often done using the EPiServer Property control: < EPiServer:Property PropertyName ="MainBody" runat ="server" /> Using the Property control will render... [ Read full article ]

16 September 2009  0 Comments


Parse an EPiServer XHTML property with Dynamic Content

by: Ted Nyberg (Ted & Gustaf)

This post explains how to parse XHTML which contains dynamic content in EPiServer so that we can retrieve the actual markup. [ Read full article ]

16 September 2009  0 Comments


Using OpenID With EPiServer CMS

by: Allan Thræn

OpenID is an awesome idea. Imagine, having a single sign-on from whatever provider you choose, and using that to log in to all your favorite websites. Many sites already allows you to use them as OpenID providers and many more will support /consum... [ Read full article ]

03 September 2009  5 Comments


I am virtually in the role, dude

by: Allan Thræn

UPDATE 2009-11-02: This code for this project has now been moved to CodePlex . Sometimes I wonder if anyone else knows that special feeling. The feeling you have when fingers just start itching and you know you just have to get that great idea out... [ Read full article ]

03 September 2009  4 Comments


Finding the right Process ID to debug

by: Allan Thræn

For some reason my vista loves to have a bunch of  webserver worker processes (w3wp.exe) running all the time, which can make it quite tricky to determine which you want to attach to, when you use Visual Studio to debug your IIS EPiServer site. So... [ Read full article ]

02 September 2009  3 Comments


Properties in Dynamic Content dont know the actually CurrentPage.

by: Anders Hattestad

In a project I’m working on we are using Dynamic Content to display media parts like images, video’s, flash.  Inside this Dynamic Content we are using a PropertyUrl to hold the selected media source. The problem is that when you get the popup with... [ Read full article ]

18 August 2009  2 Comments


Non-cached, Cross PageType, Generic Page Properties

by: Allan Thræn

There are many different ways of storing business data in EPiServer CMS. And lots of opinions on them as well. David Hunt has made an excellent blog post about some of the approaches. On top of those approaches there are also others – like using t... [ Read full article ]

04 August 2009  6 Comments


Codemania: Run EPiServer CMS in the Console

by: Allan Thræn

Back in the happy and fun filled days of EPiServer Day 2009, I was so privileged that I got to give a 1-hour talk entitled “ Codemania ” together with Mr. EPiServer himself, chief architect Magnus Stråle . At that day, most of my efforts to impres... [ Read full article ]

03 August 2009  6 Comments


Alternate WYSIWYG Editor: Ephox EditLive!

by: Allan Thræn

After seeing a rather interesting demo of Ephox’s EditLive editor I decided to try it out for a bit. Having a natural .NET skepticism to all things java, I was pleasantly surprised at how easy it actually was to work with from a .NET environment. ... [ Read full article ]

30 July 2009  4 Comments


Referrer-Search Dynamic Content

by: Allan Thræn

As many of you may know, a Dynamic Content Element a day keeps the static web sites away :-)  Here’s another I just did today: Referrer-Search. Once again I find myself in personalization mode. This idea is old. In fact I remember a former company... [ Read full article ]

29 July 2009  0 Comments


Role Based Contents

by: Allan Thræn

UPDATE 2009-11-02: This code for this project has now been moved to CodePlex .   Personalization is a thing that has been a lot on my mind lately. Everybody is talking about it – many people are doing it. I feel an in-depth blog post about this... [ Read full article ]

28 July 2009  0 Comments


Jumping on the page type bandwagon

by: Cristian Libardo

With the sun shining and the thermometer approaching body temperature I thought it was god time to have some fun. Quick from thought to action I fired up my trusty black warrior to explore another white spot on the map. My objective for the day wa... [ Read full article ]

17 July 2009  4 Comments


A quick tip on postback in a property

by: Anders Hattestad

Two years ago Mari tipped me about a method to disable the popup that appear  with the text “Do you want to navigate away from this page” if you do a postback in the edit part of a property. Today I needed that code and did some searching around.... [ Read full article ]

26 June 2009  4 Comments


Aggregating Feeds

by: Mats Hellström

I played around with the SyndicationFeed the other day and found that it was really useful in combination with the link collection property in EPiServer CMS. By using the trusty old friend LINQ you can aggregate the feeds, sort them and databind t... [ Read full article ]

12 June 2009  0 Comments


Page Type Tool - Strongly Typed Properties

by: Fredrik Tjärnberg

There has been quite some buzz in the “EPiSphere” around the property framework lately. It turns out that a lot of smart people has spent time on finding the way to strongly typed properties in EPiServer…. and so have I. Back in March I posted the... [ Read full article ]

23 May 2009  12 Comments


Search made easy

by: RockViggo

EasySearch is a full text search engine for EPiServer CMS that is driven by events. This means that there is no need for crawling the website and content that you publish will be available immediately. In addition to regular EPiServer content serv... [ Read full article ]

22 May 2009  4 Comments


New Module available on EPiCode

by: Mari Jørgensen

  I’ve created a module that will  ease the work related to migrating custom property types when you migrate from EPiServer CMS 4 to CMS 5. When migrating your 4.62 database the Migration Tool manages conversion of custom properties. The tool... [ Read full article ]

15 May 2009  0 Comments


Yet another admin property manager

by: Anders Hattestad

This is yet another admin plugin that helps manage the different page properties. My twist is the use of PageAdapter so that I don't have to make my own plugin, but can override the built in admin page for page types. As with all page/control... [ Read full article ]

14 May 2009  1 Comments


Hiding tabs based on roles

by: Anders Hattestad

Recently needed to hide some tabs in the edit mode of dynamic properties. I first tried to attach to the PropertyDataForm (the control that display the dynamic properties) with the gui plugin trick , but the ICustomPlugInLoader is not checked when... [ Read full article ]

09 May 2009  1 Comments


Revisited: Northwind Page Provider

by: Allan Thræn

Back in august of last year I published a post with a small coding example on how to make a Page Provider for the classic Northwind Database. Since it has turned out to be quite popular as a demo for Page Providers (I guess geeks get nostalgic ove... [ Read full article ]

27 April 2009  43 Comments


Forum Topic subscription using attributes

by: Joel Abrahamsson

A very common functionality in a web based forum is the ability for users to track or subscribe to topics (threads). That is, when a new reply is posted in a forum thread all users that are subscribing to the thread, except the author of the reply... [ Read full article ]

19 April 2009  5 Comments


PropertyAdapters updated

by: Anders Hattestad

Have added some cool functionality to Hattis.PageAdapters If you use EPiServer:Property to show your attribute you can try out these 4 new Attribute tags: Format Remove Text Translate EPiServer out of the box will render the following: <... [ Read full article ]

16 April 2009  12 Comments


New module: Hattis.PropertyAdapters

by: Anders Hattestad

There are several ways of changing properties in EPiServer. PropertyAdaperts is one way, and I have made some of them here. I make heavy use of Hattis.Config to let the administrators turn on and off feature. Mr Nyström had a blog with 15 wishes .... [ Read full article ]

15 April 2009  1 Comments


New module: Hattis.EmbeddedResource

by: Anders Hattestad

Recently I needed use an embedded resource but I wanted to be sure that only users that could access the admin part of episerver could access it.  Many of you have made code that works like an virtual filsystem, and I have used these before. But I... [ Read full article ]

14 April 2009  2 Comments


A voyage with the SharePoint Connector

by: Dan Matthews

Last week I had to set up a demo to a potential partner to show how EPiServer can be used to pull information together within an Enterprise and expose it in different ways. After giving it some thought, I decided that the best way to show this wou... [ Read full article ]

14 April 2009  14 Comments


Managing e-mail subscriptions in EPiServer

by: Ted Nyberg (Ted & Gustaf)

In this post we create an admin plugin for EPiServer which allows administrators to add or remove e-mail subscribers. [ Read full article ]

14 April 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


Advanced Language Manipulation Tool for EPiServer

by: Adam Najmanowicz (Cognifide)

Have you ever (or have your customers) created and edited a page in one language only to realize that their selected locale was wrong? Have you ever wished you could delete a master language branch of a page  after creating its localized counterpa... [ Read full article ]

06 April 2009  0 Comments


A new EPiServer page link control

by: Ted Nyberg (Ted & Gustaf)

  This post describes how to implement a basic server control which extends the HyperLink control to allow for easy linking to EPiServer pages. Being able to specify the inner text and title of an EPiServer page link If you want to insert a link t... [ Read full article ]

06 April 2009  8 Comments


Change LinkCollection with PropertyDataControlAdapter

by: Anders Hattestad

Recently Steve made me aware of PropertyDataControlAdapter and how you could use it to change the edit mode of a property. We are in a process of cleaning up the editor interface and come across a perfect place to use my new knowledge. When you us... [ Read full article ]

01 April 2009  6 Comments


Implement a stock quote ticker using Silverlight (part 1/3)

by: Ted Nyberg (Ted & Gustaf)

Goal of the implementation In this series of posts I’ll walk you through implementing a Silverlight control for displaying a share ticker on an EPiServer website using dynamic content: Prerequisites In order to complete this sample you need the... [ Read full article ]

30 March 2009  3 Comments


Implement a stock quote ticker using Silverlight (part 2/3)

by: Ted Nyberg (Ted & Gustaf)

This is the second post in a series demonstrating how to retrieve stock quotes from a web service, present them using Microsoft Silverlight, and finally enable EPiServer editors to insert such stock quotes as dynamic content. If you haven’t alread... [ Read full article ]

30 March 2009  1 Comments


Implement a stock quote ticker using Silverlight (part 3/3)

by: Ted Nyberg (Ted & Gustaf)

This is the final post in a series demonstrating how to retrieve stock quotes from a web service, present them using Microsoft Silverlight, and finally enable EPiServer editors to insert such stock quotes as dynamic content. If you haven’t already... [ Read full article ]

30 March 2009  2 Comments


Automatically ping Google and MSN when your site is updated

by: Joel Abrahamsson

An XML sitemap is a great way to help crawlers such as Google, MSN Search, Yahoo and ASK.com to crawl your site and also allow you to tell them how important pages on your site are relative to each other. Luckily there is a great module for creati... [ Read full article ]

22 March 2009  8 Comments


Category - more than labeling

by: Anders Hattestad

Have any of you used categories to categorized the content of the site? I guess not. When the category structure contains more than 20 element it gets almost impossible to navigate and use the category tree. My guess is that most of you uses the... [ Read full article ]

21 March 2009  7 Comments


Get out of my way! … or the story of file metadata for VirtualPathProvider in EPiServer

by: Adam Najmanowicz (Cognifide)

Immediately after you implement the VirtualPathProvider proxy from my previous post you will notice a one fairly serious lack in it. Namely all the files within that provider will be hiding behind the registration form. That is not cool for a coup... [ Read full article ]

17 March 2009  0 Comments


Codemania: Geeky PageProviders

by: Allan Thræn

At EPiServer Day 2009 I had the pleasure of entertaining a crowded room filled with the best developer brains in the community of developers working with EPiServer CMS. As promissed, I will use a couple of blog posts on providing the code we showe... [ Read full article ]

16 March 2009  3 Comments


Output PageData as JSON

by: Allan Thræn

JSON has gained a lot of popularity recently – and with good reason, in my opinion. It’s fairly easy to work with, a lot more compact than XML and quite flexible. Especially javascript frameworks like JQuery has helped JSON win ground – and... [ Read full article ]

16 March 2009  1 Comments


Getting the date of last successful execution of a scheduled job

by: Joel Abrahamsson

When building a scheduled job (a class with the ScheduledPlugIn attribute) it can sometimes be of interest to know when the job was last successfully run. One such example is a job that fetches data from an external source and only needs to get da... [ Read full article ]

15 March 2009  2 Comments


Action window template

by: Anders Hattestad

The action window is a place where you can put a variety of functionality into. The cool part about it is that you can have it open and click around in edit mode and have you action window app display relevant information about where you are. But ... [ Read full article ]

24 February 2009  3 Comments


Breaking change in GetChildren()

by: Mari Jørgensen

Let’s say that you need to get hold of all child pages of a certain parent in the EPiServer tree (and by ‘all’ I mean also those not published). With some knowledge of the API, you would quickly assume that the GetChildren method would be the way ... [ Read full article ]

17 February 2009  8 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


Generating Excel reports

by: Johan Olofsson

I guess that we all have had to create some Excel files for doing reports from a web page at one time or another, and one quite common approach is to simply render the data as comma/tab-separated text and then specify some appropriate Response... [ Read full article ]

11 February 2009  2 Comments


Turn your User Controls into Dynamic Content

by: Allan Thræn

UPDATE 2009-11-02: This code for this project has now been moved to CodePlex . I have just made a new version of the Dynamic Content Plugin introduced here and expanded here . This time I introduced the ability to turn your existing User Controls... [ Read full article ]

09 February 2009  7 Comments


Please dev's, you are making a framework p2. Dont referer to fields, use a Property.

by: Anders Hattestad

A while ago I had a blog where I pointed out too the developers that they are making a framework and asked them not too use private/internal. The reason for this request was that its make our life as a developer much easier when we can reuse code... [ Read full article ]

08 February 2009  5 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


Neat Trick: Modifying Edit Mode Tabs

by: Allan Thræn

Last week Johan Olofsson showed me a cool trick that I figured should be passed on. It’s a fun little hack that I’ve already found useful a number of times. Problem: You are annoyed with main tabs in edit mode (“View”, “Edit”, …). Maybe you want... [ Read full article ]

30 January 2009  1 Comments


Insert Flash elements in the Editor as Dynamic Content

by: Allan Thræn

Here’s just a quick little piece of Dynamic Content I threw together yesterday together with a partner. It’s for when you want editors to be able to insert flash elements directly in XHTML fields. A bit like inserting images – except that instead ... [ Read full article ]

30 January 2009  7 Comments


Show value of a inherit property in Edit mode

by: Anders Hattestad

EpiServer have some cool features when it comes too properties and inherits. There are several ways the inherit can come from. If a page is on two languages, the not language depended fields from the master page will be inherit to the language... [ Read full article ]

27 January 2009  6 Comments


Automatically Load Property Types as Dynamic Content

by: Allan Thræn

Dynamic Content is cool! Really cool. However, even good things can always get better. Back in october last year I wrote about how to automatically register dynamic content by attaching an attribute (like all other plugins in EPiServer)... [ Read full article ]

26 January 2009  2 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 a Property to ALL Pagetypes

by: Allan Thræn

I just got a question on how to make sure that a given property existed (or was created) on all page types that the editor could use – even if new page types were to be created. As I’ve been unable to find any event that is fired when a new PageTy... [ Read full article ]

20 January 2009  3 Comments


Fun with the Mapped Page Provider

by: Allan Thræn

Here’s two more small code samples I did in less than 30 min. based on the Mapped Page Provider .   Filesystem Page Provider This provider will expose folder on the file-system as pages in EPiServer CMS 5 R2. public class FileProvider :... [ Read full article ]

20 January 2009  0 Comments


Mapped Page Provider

by: Allan Thræn

UPDATE 2009-11-02: This code for this project has now been moved to CodePlex . Until now, my favorite new feature in EPiServer CMS 5 R2 is the ability to attach custom page providers ( http://labs.episerver.com/en/Blogs/Allan/Dates/112230/8/Buildi... [ Read full article ]

20 January 2009  12 Comments


Diagnostic Console and Regular Expressions

by: Marek Blotny ( Cognifide )

In my last post I have introduced a Diagnostic Console plugin for EPiServer. Today I would like to show you one more example how it can be used with regular expressions to scan pages for some data. In this example I want to find all images which a... [ Read full article ]

19 January 2009  0 Comments


Ultimate diagnostic tool for EPiServer

by: Marek Blotny ( Cognifide )

Recently I have written yet another admin plugin for EPiServer. The sole purpose of this plugin is to help developers finding pages, properties or to enable execution of some small scripts. Of course there are lots of diagnostic plugins for... [ Read full article ]

15 January 2009  0 Comments


WikiX: Dynamic Content in Dynamic Content

by: Allan Thræn

As announced earlier we released a beta of WikiX - a Wiki for EPiServer last friday. In the next couple of days some posts will follow on the various technical aspects of it.   During the development of WikiX we came across a couple of new ways of... [ Read full article ]

22 December 2008  2 Comments


Announcement: WikiX is here!

by: Allan Thræn

We've just released a beta version of the new Wiki for EPiServer CMS, called WikiX. It started off as an EPiServer Research project a long time ago - and the first and most difficult task was actually to establish what a wiki really is - and more... [ Read full article ]

19 December 2008  4 Comments


Page events, what events are registered

by: Anders Hattestad

When you make some code based on events it's easy to lose control on what events are registered where. I therefore made my self a small report to inspect the different page events and to show me the registered events for each of them. The differen... [ Read full article ]

19 December 2008  8 Comments


Fluent NHibernate - Integration Tests

by: Marek Blotny ( Cognifide )

In last two posts I have covered the Flunet NHibernate introduction and Coneventions together with AutoPersistenceModel. In this part I would like to show how Fluent NHibernate can speed up writing integration tests which should guarantee that... [ Read full article ]

17 December 2008  0 Comments


Fluent NHibernate - Conventions and AutoPersistenceModel

by: Marek Blotny ( Cognifide )

Last time I have introduced the Fluent NHibernate, this time I would like to move further and show you how to use Conventions and AutoPersistenceModel. But before we move to the point lets take a quick look on things that have changed in our sampl... [ Read full article ]

15 December 2008  0 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


Properties to a Property - the solution?

by: Anders Hattestad

EPiServer has a lot of cool features, but I have been missing is the possibility to have global settings. Many times when we make some generic components we need some kind of configuration to reuse them. Examples on what I mean is 1) a... [ Read full article ]

05 December 2008  5 Comments


Page Provider - Structure your site

by: Johan Björnfot

There might be occasions where you like to have a view of your site structure that is different from the "real" structure. Perhaps you like to view only pages in a specific language, pages that you have written, pages with some specific category,... [ Read full article ]

05 December 2008  4 Comments


Dynamic Content base class

by: Anders Hattestad

Have made myself a base class which implements the dynamic content interface and have some functions to save and retrive the state based on what properties are in the PropertyDataCollection. Its pretty straight forward but thought I was going to... [ Read full article ]

01 December 2008  4 Comments


Please dev's, you are making a framework. Don't use private/internal

by: Anders Hattestad

I admit it. I'm addicted to Reflector. I browse around a lot inside the EPiServer dll's. If you have there is a lot of cool and useful code inside the EPiServer dll's. Many places there are hidden pearls where a developer can extend the existing... [ Read full article ]

23 November 2008  15 Comments


EPiServer and Custom URLS using ASP.NET UrlRouting

by: Allan Thræn

Ever wanted to introduce some special URL handling in your EPiServer web sites, like browsing pages per category by calling mysite.com/Category/[Category To Search for]? Well, rejoyce, cause now it's easier than ever before. Since EPiServer CMS 5 ... [ Read full article ]

19 November 2008  4 Comments


Using EPiServer Virtual Path Provider with file properties

by: Fredrik Karlsson

In EPiServer CMS 5 you can both build your own Virtual Path Providers (from now on simply VPP) for accessing files as well as change the files properties. In EPiServer CMS 5 R2 it is even possible to add these properties to each Path Provider, so... [ Read full article ]

18 November 2008  2 Comments


Guide: Hello World Dynamic Content

by: Allan Thræn

I just had my debut as a bigshot movie director. Hollywood, here I come. Check out the guide here . Download the code here .   Also, check out some of the other cool guides on http://guides.episerver.com . [ Read full article ]

13 November 2008  16 Comments


Using EPiServer Custom Page Providers with Extension X3

by: Fredrik Karlsson

Since Custom page providers is the coolest in EPiServer since the first steps towards objects in EPiServer 3.40, I thought I would demonstrate a few ways of using Page Providers with Extension X3. Prerequisites First of, Page Providers is a new... [ Read full article ]

11 November 2008  1 Comments


&lt;EPiServer:Property on steroids /&gt;

by: Anders Hattestad

How many times have any of you created a function that checks two or more properties and return the first one that is not null or blank. Or even if one property is true, then display another property. And have you ever made a static function that... [ Read full article ]

06 November 2008  10 Comments


How to use Attributtes to dynamically let editors change MasterPage on your EPiServer-site

by: Anders Hattestad

I like to dynamically add and remove features from my EPiServer sites.  When i make some new features i try to make them not strict to know implementions, and are using Attributtes as a way to retrive future implementions. Yesterday i needed to ge... [ Read full article ]

23 October 2008  1 Comments


Properties in CMS 5

by: Anders Hattestad

Problem: How to create a EPiServer property which contains other EpiServer properties. Why: Most properties in EPiServer are pretty specialized and are often depended on each other to make the page show correctly. some uses of a MultiProperty  are... [ Read full article ]

20 October 2008  35 Comments


Sample: Silverlight 2 + Dynamic Content

by: Per Bjurström

This is just a small sample that creates a dynamic content plug-in that renders Silverlight 2 controls. Creating a dynamic content plug-in is so easy and so powerful that I really hope we are going to see a lot of creative stuff in this area.... [ Read full article ]

16 October 2008  5 Comments


Auto Loading of Dynamic Content

by: Allan Thræn

One of the really cool new features in EPiServer CMS 5 R2 is in my humble opinion Dynamic Content. It brings with it a lot (!) of potential. Together with PageProviders we might have something here that could turn out to be the solution to most... [ Read full article ]

05 October 2008  1 Comments


StickyTabs for EPiServerCMS5

by: Johan Olofsson

Or: “an exercise in hacking EPiServers Edit mode!”   I’ve always found it a little awkward having to do repetitive tasks spanning more than one page in EPiServer’s Edit mode as the selected tab is reset to the default “View” tab when I click on a... [ Read full article ]

23 September 2008  4 Comments


Working with rules and categories for Extension functions

by: Fredrik Karlsson

I have just added two more articles on the Extension wiki and I thougt I might post the code and a short description here as well. Rules Rules are used in Extension to set whether or not you can add function in a Content area or not. Because if yo... [ Read full article ]

22 September 2008  0 Comments


Some ActiveDirectoryRoleProvider issues

by: Johan Olofsson

There has recently poppep up some issues/questions related to the ActiveDirectoryRoleProvider that we made available for download (including sources), and as I have been somewhat involved in investigating them I thought I should share the results ... [ Read full article ]

18 September 2008  6 Comments


Dynamic Content Examples

by: Paul Smith

Here you will find a zip file containing some Dynamic Content Examples including the Televizzle example I showed recently at the EPiServer CMS Tech Forum in Copenhagen. Installing and using the examples Unzip the file's content to the root... [ Read full article ]

14 September 2008  0 Comments


Dynamic Content Examples

by: Paul Smith

Here you will find a zip file containing some Dynamic Content Examples including the Televizzle example I showed recently at the EPiServer CMS Tech Forum in Copenhagen. Installing and using the examples Unzip the file's content to the root folder ... [ Read full article ]

14 September 2008  3 Comments


Providing simple &quot;metadata&quot; for Properties

by: Johan Olofsson

Have you ever found the need for being able to specify metadata for EPiServer Property's? For example as in my current situation, developing code that interacts with Microsoft Dynamics CRM, being able to specify what "entity" (Contact, Account,... [ Read full article ]

12 September 2008  1 Comments


Implement your own httpCacheVaryByCustom method

by: Fredrik Karlsson

Enabling httpCache in EPiServer is very crucial to get maximum performance from your system. But sometimes you might want to get the cache to differ on something else then just query strings. A typical example is to give the user the possibility t... [ Read full article ]

10 September 2008  0 Comments


How to get the internal URL or page reference based on a friendly URL in EPiServer

by: Ted Nyberg (Ted & Gustaf)

I have previously described how to get the simple address of a page and how to get the friendly URL of a page in EPiServer . This post explains how to get the PageReference object or internal URL based on a friendly URL . The goal of the... [ Read full article ]

04 September 2008  5 Comments


How to make virtual path providers work with precompiled EPiServer websites

by: Ted Nyberg (Ted & Gustaf)

Note: This is an experimental workaround. It is not supported by EPiServer nor Microsoft. Introduction Earlier I wrote a post on how you can Precompile your web site to publish it without source code or markup . Minutes after publishing it I was... [ Read full article ]

03 September 2008  4 Comments


Edit Page - Shortcut/External link tab

by: Marek Blotny ( Cognifide )

Shortcut/External tab in edit mode is a useful thing. You can create different types of links there, you can also specify target frame which allows you for example to open external links in a new window. It all sounds great but do you really use i... [ Read full article ]

03 September 2008  0 Comments


ASP.NET and JQuery = powerful combination

by: Marek Blotny ( Cognifide )

Over last few years number of interesting JavaScript frameworks emerged. My reaction to JavaScript used to be quite allergic, for me there was no such thing like a maintainable JavaScript code. But apparently things have changed drastically. At th... [ Read full article ]

31 August 2008  0 Comments


Using web parts in EPiServer

by: Ted Nyberg (Ted & Gustaf)

As Stein Viggo points out in his EPiServer on Steroids post, traditional page type templates can limit editor creativity. Having editors enter values for page properties and placing these values within well-defined templates can do miracles for... [ Read full article ]

26 August 2008  11 Comments


Using web parts in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This article explains how to use web parts for EPiServer templates using the Web Part Framework for EPiServer which is available on EPiCode. [ Read full article ]

26 August 2008  0 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


Run a scheduled job as a specific EPiServer user

by: Ted Nyberg (Ted & Gustaf)

This post shows how to login to an EPiServer site programmatically, for example to execute a scheduled job as a specific user. [ Read full article ]

18 August 2008  0 Comments


EPiServer, MultipageProperty -- don't use SelectedPages property!

by: Marek Blotny ( Cognifide )

I don't know how it works for you, but I can't imagine life without MulipageProperty. I use it in most of our projects and that is great because I love flexibility which it offers. Recently while checking MulitpageProperty source code I found... [ Read full article ]

17 August 2008  0 Comments


How to get the simple address of a page in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This post explains how to get the simple address of a page, if any. As it turns out, it's just a matter of getting the PageExternalURL property. [ Read full article ]

15 August 2008  0 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


Building your own Page Provider: Northwind

by: Allan Thræn

EPiServer CMS 5 R2 CTP is awesome! I've now finally found a few hours to play around with some of the new cool functionality and I really like what I see. In particular I've grown fond of custom page providers. It's extremely cool to be able to... [ Read full article ]

08 August 2008  6 Comments


Create a custom scheduled job in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This post explains how to create a scheduled job in EPiServer CMS. Introduction A scheduled job in EPiServer is essentially a piece of code that will be executed repeatedly at a given time interval, or when an administrator manually executes it... [ Read full article ]

08 August 2008  3 Comments


Create a scheduled job in EPiServer

by: Ted Nyberg (Ted & Gustaf)

This post explains how to create a scheduled job in EPiServer CMS. [ Read full article ]

08 August 2008  0 Comments


PlugIns and DataFactory Event Handlers

by: Marek Blotny ( Cognifide )

Inspired by great post of Allan Thraen about When and Where to attach DataFactory Event Handlers I decided to keep digging into this subject. What seems really cool about it is that you can attach to DataFactory events and moreover you can do it i... [ Read full article ]

28 July 2008  0 Comments


Create a custom URL rewrite provider for EPiServer

by: Ted Nyberg (Ted & Gustaf)

Post explaining how to implement a custom URL rewrite provider in EPiServer by inheriting the FriendlyUrlRewriteProvider class and customizing its behavior. [ Read full article ]

24 July 2008  0 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


Pimp up your search I

by: Allan Thræn

Let's face it, the EPiServer CMS built-in search isn't the best in the world. Neither is it intended to be - there are a lot of 3rd party search engines available for EPiServer that are great at what they are doing - and in general I highly... [ Read full article ]

21 July 2008  8 Comments


Output EPiServer Pages as PDF

by: Allan Thræn

Got a question today from a partner about how he could make a "Download this page as PDF" functionality on a customers web site. I suppose there's quite a lot of ways to do it (just as many as there are HTML -> PDF libraries out there) but I... [ Read full article ]

07 July 2008  2 Comments


PlugInSettings - Use this class if you wish to store simple relational data ...

by: Marek Blotny ( Cognifide )

Recently I had to create plugin for editors (EPiServer 5) which would allow them to change some internal settings. It's of course possible to create a new page type for that but it's not always the coolest approach. If the requirement is to provid... [ Read full article ]

02 July 2008  0 Comments


Grid Layout

by: Viktor Larsson (Victoria)

When starting out with a EPiServer project, this nifty little tool might come in handy: The Grid Layout Javascript enables web-developers to stick to a Grid Layout quickly and simply by including the Grid Layouts Javascript file and simple XHTML... [ Read full article ]

02 July 2008  0 Comments

Tags:


Friendly URL with no rebasing

by: Johan Olofsson

I got a question regarding EPiServer CMS friendly url rewriting about wether it is possible to make the rewritten url's relative to the site's root rather than the context of the requested page. If you look at the html source for a page rendered b... [ Read full article ]

01 July 2008  2 Comments


Explicit localization in EPiServer

by: Marek Blotny ( Cognifide )

This time I want to write about a feature which for sure is not new but I think many people (including myself a few days ago) are not aware of it. Explicit localization is actually a ASP.NET feature, it's nothing EPiServer specific but it can be... [ Read full article ]

23 June 2008  0 Comments


Explicit localization in EPiServer

by: Marek Blotny ( Cognifide )

This time I want to write about a feature which for sure is not new but I think many people (including myself a few days ago) are not aware of it. Explicit localization is actually a ASP.NET feature, it's nothing EPiServer specific but it can be... [ Read full article ]

23 June 2008  0 Comments


How to check if a Property is marked as Searchable

by: Allan Thræn

A couple of times I've been asked how to check if a property on a page is set to be Searchable. It can be very handy to know, if you are making a search engine integration - or any other kind of textual processing of EPiServer CMS content, for tha... [ Read full article ]

23 June 2008  1 Comments


Hack: Faking HttpContext under EPiServer CMS5

by: Johan Olofsson

In my previous posts, I showed how one can "fake" a web request by creating a HttpContext and then assign it to the writeable property HttpContext.Current. Now, there is a problem using this approach under the original release of EPiServer CMS5,... [ Read full article ]

23 June 2008  5 Comments


Hack: Getting the html from a PageData in EPiServer CMS5 Part2

by: Johan Olofsson

Ok, as you found out if you tried to use the html that was generated using the code in the previous post, you'd notice that all links were rendered in the good ol "classic" style: "templates/page.aspx?id=3&language=en" So, how can we fix that when... [ Read full article ]

18 June 2008  0 Comments


Hack: Getting the html from a PageData in EPiServer CMS5

by: Johan Olofsson

I've gotten some requests for sample code showing how to get the resulting html for a EPiServer PageData so I thought I would share some ideas I had around this. The question is: "I have got a PageData instance. Now how can I (server side) get the... [ Read full article ]

18 June 2008  13 Comments


The EPiCode Cache Framework

by: Steve Celius

On the EPiServer Developer Summit I demonstrated a way to speed up your lists by caching the content after the first initial loading, using a small framework that helps you extract the code that loads the content. It handles the caching completely... [ Read full article ]

15 June 2008  2 Comments


Multiple Templates for a PageType

by: Allan Thræn

It looks like a Dev / Partner summit is the perfect birthplace for ideas to grow. Here is yet another idea that grew out of discussions with partners, eMVPs and other Guru's at the summit: It could be cool to have multiple renderings (templates) f... [ Read full article ]

10 June 2008  3 Comments


Module Packaging

by: Mari Jørgensen

  If you have installed the new demo package available on EPiServer World, you have already used the new module installation feature in the EPiServer CMS Manager. This feature is rather new, and IMHO one of the coolest things in EPiServer CMS 5. Y... [ Read full article ]

21 April 2008  6 Comments


Manage your Newsletters in EPiServer

by: RockViggo

The Newsletter module lets you create pages in EPiServer and send pages as emails to many recipients. In contrast to the built-in subscription feature this module is push based, as you define the content, and control the sending. The feature list... [ Read full article ]

10 April 2008  3 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


Create and publish a page programmatically

by: Ted Nyberg (Ted & Gustaf)

This post explains in detail how to programmatically create a page in EPiServer CMS 5. It also shows how to publish a page through code, even when the current user lacks the necessary permissions. 1. Specify where to publish the page Start off by... [ Read full article ]

05 March 2008  10 Comments


NotSupportedException: The property Title is read-only

by: Marek Blotny ( Cognifide )

Few lines of code which are quite self-explanatory and used to be working in pre-EPiServer 5 era. // get page instance PageData page = DataFactory.Instance.GetPage(new PageReference(id));// set new value page.Property["Title"].Value = "here comes... [ Read full article ]

04 March 2008  0 Comments


NotSupportedException: The property Title is read-only

by: Marek Blotny ( Cognifide )

Few lines of code which are quite self-explanatory and used to be working in pre-EPiServer 5 era. // get page instance PageData page = DataFactory .Instance.GetPage( new PageReference (id)); // set new value page.Property[ "Title" ].Value = "here... [ Read full article ]

04 March 2008  0 Comments


Replacing Property Rendering Using Adapters

by: Mari Jørgensen

  My colleague, Steve, wrote an excellent post on how the new property architecture in CMS 5 allows us take control of the property rendering . This post is a followup, illustrating the same example as Steve did, but this time using Controls... [ Read full article ]

02 March 2008  10 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


Taking Control of Property Rendering

by: Steve Celius

I answered a question in the developer forum today, about the span tags that the EPiServer:Property control renders when you pass it the name of a PropertyString property. The thing is; the Property control itself supports setting a CSS class,... [ Read full article ]

28 February 2008  2 Comments


Search for EPiServer pages based on properties

by: Ted Nyberg (Ted & Gustaf)

This post aims to clearly illustrate a way of searching for EPiServer pages based on property values. By specifying search criteria and a place to start the search you'll get a PageDataCollection containing all matching pages. The concept The... [ Read full article ]

26 February 2008  12 Comments


EPiServer Pie with freshly cut MVC

by: Allan Thræn

Or how to integrate ASP.NET MVC into an existing WebForms Web Application Project.   After having studied Scott Guthrie's excellent posts on ASP.NET MVC and attended a pretty good Tech Talk at Microsoft yesterday I decided the time was right to... [ Read full article ]

21 February 2008  8 Comments


Page Mockup - easy creation of page structure

by: RockViggo

One of the things I like the most in my work is to hold customer presentations. In order to make EPiServer look gooood I rely on some small tools and Plug-ins that give me the upper hand and sets the customer in the right mood. Many of these tools... [ Read full article ]

20 February 2008  0 Comments


Custom Google: EPiServer Developer Search

by: Allan Thræn

Once again Google has (beta) released a cool utility based on their global search. This time it's the long-awaited custom search feature, that allows anybody to easily build their own vertical search portal, searching just the sites they find... [ Read full article ]

15 February 2008  1 Comments


EPiServer + Picasa = TRUE

by: RockViggo

Norsk Rikstoto donated the Picture Gallery template to EPiCode some time ago. This very cool template creates thumbnail size, preview size and the possibility to download the full resolution picture. It even handles search in metadata of pictures... [ Read full article ]

14 February 2008  2 Comments


Nightly Fun with 301

by: Allan Thræn

WARNING : GEEKY STUFF.   Do you ever have difficulty falling asleep at night, because your brain begins to code the moment your tired body hits the bed? Well, I do every once in a while. And then I know that I can either toss and turn all night or... [ Read full article ]

14 February 2008  3 Comments


Reflect user language in custom properties and plugins

by: Mari Jørgensen

  If you are creating custom properties and plugins, you propably want your labels and text to reflect the language that the user has selected as his/hers personal language.   This can be solved by using a custom Translate method similar to this:... [ Read full article ]

13 February 2008  0 Comments


EPiServer on steroids

by: RockViggo

A template driven CMS with properties for editors to fill in makes wonders for the usability but sets boundaries for the creative mind. The result is often that you got to have templates with multiple properties in order to compensate for the... [ Read full article ]

12 February 2008  12 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


Handle 404 exceptions in EPiServer CMS

by: Ted Nyberg (Ted & Gustaf)

As many of you know, there is a comprehensive 404 handler available for download through EPiCode. However, I just wanted a simple way of specifying a PageID and have that page act as a 404 response. Easier said than done it seems I actually got my... [ Read full article ]

07 February 2008  10 Comments


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

by: Ted Nyberg (Ted & Gustaf)

This post explains how to get the friendly URL of a page in EPiServer, handy for those cases where you won't get automatic rewriting of internal URLs. [ Read full article ]

07 February 2008  0 Comments


Google Maps in EPiServer CMS 5

by: RockViggo

The Google Maps integration with EPiServer has been available from the old research site , for some time now. The module lets editors create POI's as pages in EPiServer with rich text formatting. It has never been easier to create professional... [ Read full article ]

19 January 2008  0 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


The king of properties - Multipage property

by: RockViggo

On EPiCode you will find a peace of code that I think you would like to use in every project based on EPiServer - the Multipage property . It allows editors to create a list of links consisting of internal and external links as well as pictures an... [ Read full article ]

14 January 2008  1 Comments


Ever heard about EPiCode?

by: RockViggo

Hi, all. This is my first post on the Labs blog and I intend to be an active member (ever heard that before?). I wish to dedicate this post to the Community Source found on https://www.coderesort.com/p/epicode/ . EPiCode is a Community Source... [ Read full article ]

10 January 2008  2 Comments


Determine if it is a new page on page publish event

by: Ruwen Jin

When you listen to page publish event sometimes you want to need know if it is a new page or it is a update of old page. One way to do it is listen to CreatedPage event. If one page goes through both CreatedPage and PublishedPage events it is a ne... [ Read full article ]

09 January 2008  1 Comments


Enum.Parse() is quite useful

by: Johan Olofsson

I sometimes write code that needs to parse user given arguments, for example through settings in configuration files, parameters given on the command line et.c. The usual way I've dealt with them is to simply perform a bunch of string compares in ... [ Read full article ]

18 December 2007  2 Comments


EPiServer Workflows

by: Johan Björnfot

As you perhaps have noticed we introduced a completely new workflow implmentation in EPiServer CMS 5. This implementation is based on Windows WorkflowFoundation (WF) that was shipped with .NET 3.5. A typical scenario where a workflow can be used i... [ Read full article ]

17 December 2007  6 Comments


Override EPiServer url rewrite behavior

by: Ruwen Jin

It is common in database driven web application to use id as parameter in querystring. By default EPiServer will assume that id parameter in querystring is only using by EPiServer and will remove it from Request.QueryString. And the recommend way ... [ Read full article ]

12 December 2007  11 Comments


UpdatePanel in EPiServer CMS

by: Johan Björnfot

In the released version of EPiServer CMS 5 (version 5.1.422.4) there is a problem when using UpdatePanel when FURL (Friendly URL) is activated on the site. The problem occurs because the AJAX callbacks from UpdatePanel will in some cases update th... [ Read full article ]

10 December 2007  4 Comments


Using LINQ to read opml

by: Ruwen Jin

I need read opml and translate it to my objects. Instead of work with Xml Document I use System.Xml.Linq :   using System.Xml; using System.Xml.Linq; ... ...   XmlReader reader = new XmlTextReader(opmlUrl); XElement opml = XElement .Load (reader);... [ Read full article ]

05 December 2007  0 Comments


Parsing Active Directory Connection Strings

by: Johan Olofsson

Today I had the need to parse an Active Directory connection string ( LDAP://server/CN=Users,DC=EPiServer,DC=Com ) into its various parts and found the little nifty interface IAdsPathName which does exactly this. By using COM-interop this can be... [ Read full article ]

04 December 2007  0 Comments

Tags:


Lessons learned: Module Conversion

by: Mari Jørgensen

Last week I spendt a lot of hours converting one of the EPiCode modules (the MultiPageProperty ) to EPiServer CMS 5. Here are some of the lessons I learned.  References First step is replacing EPiServer  references. Note that we will need 3... [ Read full article ]

30 November 2007  1 Comments


&quot;Impersonating users&quot;

by: Johan Olofsson

I sometimes need to run code, especially EPiServer page retrieving/submitting, within a specific user's context, preferrably without having to log them in (and thus having to know and store their password) One approach to this might look something... [ Read full article ]

29 November 2007  2 Comments


PageTreeLoader / PageTreeReader is gone

by: Johan Olofsson

If you (like me) have been using the nifty functions PageTreeLoader / PageTreeReader to load complete hierarchies of pages in EPiServer 4.x, you'll notice that these functions are now gone in EPiServer CMS5 and that EPiServer.Legacy4 suggests that... [ Read full article ]

29 November 2007  1 Comments


File Selection Drop Down List

by: Allan Thræn

I just got a request for a code-sample on how to display a list of files from the unified file system in a drop-down list in EPiServer CMS 5, so I composed a small example (thanks for your kind help, Ruwen!). First I define the drop-down-list - th... [ Read full article ]

27 November 2007  0 Comments


Playing around with LINQ and EPiServer CMS 5

by: Allan Thræn

I finally found a moment to begin playing around with EPiServer CMS 5 in conjunction with LINQ and the cool features of C# 3.0. Ever since I first saw Anders Hejlsberg present  his thoughts on LINQ several years ago, I've been dying to get my hand... [ Read full article ]

26 November 2007  2 Comments


XSLT in EPiServer CMS 5

by: Allan Thræn

Personally I'm not a big fan of neither XSLT nor XML. In fact, my feelings around XML is expressed in this quote I heard recently: "XML is like children. They start out cute and small, then they grow..." (I don't remember who said it - if it was... [ Read full article ]

23 November 2007  4 Comments


Show Published Pages (Versions) in a Specific Time Span

by: Allan Thræn

Since I'm still trying to learn my way around EPiServer I grab whatever chance I get of coding something a bit out of the ordinary, and today was no different. At a Developer Course I was attending, the need came up for a page that would list all... [ Read full article ]

16 November 2007  1 Comments


EPiServer property getter cleaner-upper

by: Adam Najmanowicz (Cognifide)

Just a daily time saver, for reuse at another time. Any old time windows developer, will remember the fun of using the ini files with GetPrivateProfileString . As much as ini files sucked there is one nice aspect of that call - you can setup a... [ Read full article ]

14 November 2007  0 Comments


A Simple Page Import Web Service

by: Allan Thræn

In EPiServer CMS 5 there's a couple of very useful Web Services that gives you pretty thorough access to do just about anything you please - at least with regards to adding / searching / modifying pages. However the Web Services can be pretty... [ Read full article ]

09 November 2007  2 Comments

Syndications


Archive


Tag cloud

EPiTrace logger