Friendly URL with no rebasing

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 by EPiServer CMS you'll notice that all links are relative to the requested page, and if that page is some levels "down" in the hierarchy, the link to the start page could for example look like this: EPiServer Labs Although it will work, it doesnt look... [ Read full article ]

01 July 2008  1 Comments


Hack: Faking HttpContext under EPiServer CMS5

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, where you get an error message like this: "Cannot access EPiServerProfile. ProfileManager must be enabled, HttpContext must be valid and HttpContext. Current. Profile must be of a type derived from EPiServerProfile" The error originates from the fact... [ Read full article ]

23 June 2008  2 Comments


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

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 our "rendering" doesnt pass through the ResponseFilter that performs the conversion of urls into their friendly form? Well, one way would be to call the appropriate conversion function ourselves, principally in the same way EPiServer itself does.... [ Read full article ]

18 June 2008  0 Comments


Hack: Getting the html from a PageData in EPiServer CMS5

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 html code that would be rendered for it? " Well, you can of course just initiate a web request to the local server using the Page's url and simply capture the retuened html response stream into a string and use it. But, the downside with this... [ Read full article ]

18 June 2008  8 Comments


EPiServer PlugIns in one single dll

I have written numerous Edit/Admin-mode plugins for EPiServer CMS over the years, and it has somewhat intruiged me that plugin-framework requires an . ascx (or . aspx) to be available. PlugIns thus have to consist of several files besides the assembly (dll) and often requires directories to be named (and positioned) correctly in order to work. One approach to workaround this that I recently came up with is to have the plugin's assembly contain the needed . ascx files as embedded resources and... [ Read full article ]

12 June 2008  2 Comments


Johan Olofsson

About me

Developer @ Resarch


Syndications


Archive


Tag cloud

EPiTrace logger