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

Books

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

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

------

 

Rich text editor and line breaks

I have had several editors asking me this:

“When I hit enter I create a new paragraph but I just want a line break”

Solution: when you want to insert a line break you hit shift enter

Only log in umbraco members when they have been approved

A common thing when dealing with members on your site is that they need to be approved after registration before they can access the protected area on your site.

This post describes a simple way of doing that.

On the umbraco member type I have a True/false property with the alias active. If this is set to true on the member he is an ‘active’ member and is allowed to log in.

Adding a language selector to your multilingual umbraco site

Create mutlilingual sites with umbraco, there are several approaches in doing this, the one I use the most is to have multiple ‘top level’ nodes (I’ll make a screencast of this in a future post). So for each language you would have a top level node.

The content tree would look like this:

Custom document type icons/thumbnails

自定义文档类型的图标和缩略图

When creating or editing a document type you are able to select an icon and a thumnail image from a dropdown.

shopdocumenttype

The icon will show up in the content section and the thumbnail will be used in the ‘Create Page’ dialog. Giving different document types a different icon/thumbnail is a good way to keep the content section a bit more editor friendly.

It’s also verry easy to add your own custom icons/thumbnails the only thing you need to do is add your images to the folders where these images are stored

Thumbnails:

\umbraco\images\thumbnails

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.

Adding Css and JS using the ClientDependency

As of version 4.1, the ClientDependencyFramework has been added to Umbraco.

This ensures that only 1 copy of a file is included, even if you have an include in several templates. It is used in the backend to ensure a small footprint.

You can also use it in the front-end yourself. Here's an example how to use it:

<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<%@ Register Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" TagPrefix="CD" %>

Advanced macro parameter syntax

Instead of just using hard-coded values, it is also possible to pass values from the current, the request collection and cookies to a macro.

This is done by using a special syntax, currently known so far as as "the bracket syntax" (better name will be introduced in Umbraco 5.0)

Macro Parameters

What are macro parameters?

Macro parameters are in short a value you send to a Macro from Umbraco. This could be piece of text, a node ID or even a big chunk of xml. To do this you have a handfull of different form controls you can use:

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.