Heltblank

Text

A little note about umbracoUrlAlias

The umbracoUrlAlias just make me happy. You can easly store your old urls from for example your old cms or blog.

An example when importing content from blogengine you can use this approach:

docNode.getProperty("umbracoUrlAlias").Value = blogenginexmlitem.Attribute("post-url").Value.ToLower().Remove(0,1)

Remember the “ToLower” since umbracoUrlAlias uses lowercased url, and remove the first letter in the url, since it should not start with “/”. For example a blogengine post url: “/post/YourPost.aspx” should result as this: “post/yourpost.aspx”

Posted on Tuesday, October 20 2009. Tagged with: umbraco
Heltblank www. stuff
Next