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

How to

Package Action Samples

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!

Also with in this is a GREAT peice of information is this cool package that lets you TEST your actions are correct

------

 

Adding a new/custom section to umbraco, sample project

Simon Justesen, has a great post describing how to add new sections and trees inside umbraco (part 1, part 2).

To make it easier to get started, I thought I would provide some starter sourcecode for a demo custom section.

How to create a Custom Section in Umbraco 4

Keep the user experience consistant

While creating an Umbraco based application, there is often the need to add extra functionality to the system, especially when we want to create ways to allow the management of business specific aspects or entities.

Instead of creating a separate application, the bespoke functionality should be integrated with Umbraco. Thanks to Umbraco's flexibility, we can extend and adapt the platform in several different ways.

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.

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″?>

]>

umbraco中使用简洁urls

很多朋友都喜欢采用更简洁的链接(URLs). 这是完全可以理解的:毕竟,这可以跟容易的让人明白而且有利于SEO, 对搜索引擎来说也是相当友好的。Umbraco 内建了一个不错的引擎,可以使得链接跟我们所想象的一样友好,比如去掉链接后面的.aspx扩展。

在umbraco中去掉 .aspx 扩展是一件相当容易的事,只需做以下两步。

  1. 修改web.config umbracoUseDirectoryUrls to true。
  2. 调整IIS设置,使之支持通配符映射(wild card mapping)。

Windows 2003, IIS6配置参考

  1. 在IIS配置管理器中,右击你的网站选择属性(properties)
  2. 切换到[主目录]
  3. 点击配置
  4. 点击[插入]添加应用程序映射,并反选[检查文件是否存在]复选框

用XSLT实现导航面包屑-Breadcrumb

本示例实现了显示当前所在位置的功能。