Login

Blog entries posted during April 2008

Apr
29

Trouble loading virtual file with spaces

Posted by: Erik Nordin

Had some trouble loading a vitrual file containing spaces. The problem was apperently that some characters were urlencoded, a simple Server. UrlDecode(CurrentPage["DocumentPath"]) solved the problem. [Read full article]

0 Comments

Apr
29

Get LinkURL to another language

Posted by: Erik Nordin

I’ve had some problem to link to a page to another language then the current language. Even though I have a PageData-object with anouther languagebranch, it stills makes a link to the current language. My own solution, building a url by CurrentPage.... [Read full article]

0 Comments

Apr
28

Get file size from a virtual file in EPiServer

Posted by: Erik Nordin

VirtualFile file = System. Web. Hosting. HostingEnvironment. VirtualPathProvider. GetFile( CurrentPage["FilePath"]. ToString() ); UnifiedFile f = file as UnifiedFile; return f. Length / 1024 + ” kb”; [Read full article]

0 Comments

Apr
18

New AppSettings/Dynamic List (one option) and AppSettingsMultiple/Dynamic list (Multiple options) in EPiServer CMS 5

Posted by: Erik Nordin

The new properties AppSettings and AppSettingsMultiple in EPiServer CMS 5 is a pretty nice feature, but when yesterday when I tried to implement it, I had a hard time finding out how to do it. But finally I did. First of all, in edit mode,... [Read full article]

0 Comments

EPiTrace logger