warning: Creating default object from empty value in D:\Hosting\10991155\html\2012\modules\taxonomy\taxonomy.pages.inc on line 34.



Thoughts,tips for creating packages

Creating packages is easy, the built-in package creator, which can be found by going to the developers section, right clicking the packages folder and choosing create package, makes it super simple and with package actions you can perform additional common tasks (like updating the xsltextensions) without having to write a single line of code.

Package Action Samples

[update]: there's already info available, it's just not that easy to find... Here's the link to the page

I got this from CodePlex, it was created by Richard Soeteman and various other people and can be found on CodePlex here - Personally I can't beleive this isn't in the WIKI as its GOLD information, and I only found out about it from a blog reply!

Creating content folders

A common problem for people when starting to work with umbraco is working our how to create content folders, such as folders for storing news items or other content.

The process is as follows:

Create a new document type called Content Folder or the like (You cannot use the name Folder as that is already in use by the Media Library).

In the newly created document type add the following property:

Name: Redirect to

Alias: umbracoRedirect

Type: Content Picker

Working with document types

What are Document Types?

Document Types are the heart of the content structure of umbraco. They define which properties the content elements have in detail, which properties are mandatory, which properties are optional and which data types the properties are of. Also they define which templates can or must be used for the content elments and which document types can occur below each content element.

Umbraco Helper Class

Thoughts tips for creating umbraco packages

I’ve created my share ofumbraco packages and thought I’d try to share some tips/insights.

Creating packages is easy, the built-in package creator makes it super simple and with package actions you can perform additional common tasks (like updating the xsltextensions) without having to write a single line of code.

Displaying a random image/banner on your umbraco site

First some info on the setup:

After installing runway to get a basic site up and running I created a folder in the media section and added several images


On my homepage document type I added a ‘media picker’ property called ‘Pictures’. There I’ll select the media picture folder.


All that’s left now is to write some xslt that will select a random image from the media folder.

<?xml version=”1.0″ encoding=”UTF-8″?>


Why Umbraco rocks - alternative templates

The main building blocks of umbraco are as you know document types and templates. When creating a document types the umbraco interface will give you the options to also create a templates that is then setup as the default template on that document type. If you open up the details of a document types you’ll be able to see the ‘allowed templates’ part on the info tab.

Fetching the nodeid in a custom datatype

Just a quick tip following the custom datatypes posts (Creating custom umbraco datatypes , Storing parseable xml data in a datatype ).

When creating a datatype you might at some point need to have the current document’s nodeid. Like if you want to insert some extra data in a custom table.

Since the datatypes are also used by autoform/doc2form , liveediting and not only in the umbraco backend the best approach is to fetch it like this:

Storing parseable xml data in a datatype

As a follow up on creating custom umbraco datatypes  the post I’ll show how to store parseable xml data in a datatype.

By default all propertry values get saved inside a cdata section(in the /data/umbraco.config file, wich has all published content).

Like in this example, a property with the alias test will look like this.