Codegarden 08: Hidden gems

This is just an ultra short writeup of some of the hidden gems presented at one of the Open Space sessions at codegarden.

You can now get the image source directly in the template: <img src='<umbraco:Item field="umbracoFile" nodeid="1072" runat="server"></umbraco:Item>' /> 'nodeid' is the id of the media item.

"Magic" document property names

These all work by adding a property to your document type with the mentioned name as property alias

umbracoRedirect When a nodeid is entered in this property on a page, Umbraco will redirect to that page.

umbracoUrlName If you want to change/override the niceUrl of a page, but don't want to change the pagename property, this is the way to go.

umbracoUrlAlias This will _add_ new url's that will show the page. For example if you have a page hidden deep in your nodetree, you can add "signup" to the property, and you can now access the page on "/signup.aspx" (or without the .aspx if you are using directory url's). You can add multiple shortcuts by separating with a comma (no spaces): "signup,membership,deeper/url/here".

Feel free to add more of the gems from the session (I didn't attend the whole thing)

Related posts

Comments

Comments disabled

Comments are disabled for this post.