Blog entries tagged with Code Samples

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

Allan Thræn

About me

I am a product manager @ EPiServer, with a passion for the more geeky side of things. My technical interests are typically focused around user problems, user experience,  search, information management, artificial intelligence and  personalization

On top of this blog I have the blog Allan On Technology and I often crosspost.

DISCLAIMER: Unless otherwise stated in the posts, this blog expresses my personal opinions, experiments and views, not necessarilly the views of EPiServer AB.

  page views this week.

 

 

Syndications


Archive


Tag cloud

EPiTrace logger