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

Books

欢迎访问Umbraco中文技术文档。因涉及到的内容比较多,此分类还按不同的用途进行了细分。你可以通过子分类快速定位到相关内容。

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

randompicturemediajpg

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

randompicturecontent

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.

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.

Creating custom datatypes using the umbraco usercontrol wrapper

I showed how easy it is to add custom .net usercontrols to your umbraco site frontend (http://www.nibble.be/?p=12). It is also very easy to add .net usercontrols wich you can use as custom datatypes. There are 2 ways of doing this, one being the umbraco usercontrol wrapper wich I will explain in this post.