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.

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.

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:

Setting up a new Umbraco project

When setting up a new project I have the following requirements:

umbraco演示网站

新增一umbraco cms演示网站,网址为 http://umbracodemo.com/

对umbraco cms感兴趣的,在安装前不妨多体验下。

Umbraco 演示网站管理后台体验方法

有任何使用上的问题,欢迎留言交流。

http://www.umbracochina.com/contact

 

 

What is runway and modules?

A quick introduction to the boost / nitro concepts, what you can expect from a nitro package and what it means for your productivity.

用XSLT实现导航面包屑-Breadcrumb

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

Umbraco debugging made easy

This post will show you how to debug umbraco macros, with the click of a browser button.

When you need to debug your macros, either xslt or usercontrols you do this by appending some text to the querystring on the page you need to debug.  The most important for me is ?umbDebugShowTrace=true it shows you the build in stack trace from the .NET framework. You can use this if your macro shows/throws an error, in the trace you can see exactly what went wrong in your xslt- or usercontrol macro. The other one is ?umbDebug=true which will show you what is injected into your macro.

调试umbraco网站

如果新加入到页面的宏不能正常工作,这就有需要用到调试功能。在umbraco页面启用调试是一件相当简单的工作,只需要在待调试的页面url上附加?umbDebugShowTrace=true。附加该参数后,你将看到完整的堆栈跟踪:显示所有用户控件被umbraco调用信息,错误信息将以红色显示。

Masterpages in V4 of Umbraco - Part 3 of 3

Masterpages in V4 of Umbraco - Part 3 of 3