Home

Url rewriter for a blog

By Johan Pettersson 15 March 2012 16:37

Rewrites tags, dates and pages. Supports the format /Templates/Blog.aspx?id=3&epslanguage=en&year=2012&month=5&page=2&tag=episerver

Read more...

Base class for user controls that handles CurrentPage in PageList

By Johan Pettersson 28 February 2012 14:07

If you add an EPiServer Property control to the PageLists ItemTemplate it handles CurrentPage as expected, you can also get the CurrentPage by the binding expression:

<%# Container.CurrentPage %>

Lets say you have an user control (.ascx) in the ItemTemplate instead, then the CurrentPage will be the actual page the PageList control is added to. We can workaround this by having a property in our user control and set it to Container.CurrentPage.PageLink and set each Property’s PageLink to it, but let’s make it a little bit more sophisticated.

CurrentPage is resolved by implementing IPageSource or ICurrentPage. But how do we implement them?

Read more...

Cross publishing by mirroring, or?

By Johan Pettersson 9 February 2012 10:36

The requirements

One of our clients has an enterprise solution with several websites in the same EPiServer database and wanted to be able to publish some content just once and then the content would be reflected on each website. But sometimes they wanted to create local content as well in the same page structure which was created by the global content. Sometimes parts of the content shouldn’t be reflected on all sites, just selected ones.

The two latter requirements made the solution much more complex.

Read more...

Browse by

Tags

Dates

2012
March (1)
February (2)
2011
November (4)
October (1)
2009
December (4)
November (2)
October (1)