Why Umbraco Rocks - Adding custom usercontrols
Umbraco rocks! Why ?
Reason one:
It’s extremely easy to add custom .net usercontrols to your umbraco site. So you can still take full advantage of the .net framework when working with umbraco. I made a quick screencast showing how to add a .net usercontrol to your umbraco site.
Demo Project: download

This is fantastic! Very nice. Thanks for demonstrating just how easy it is to extend umbraco without needing to get into the umbraco source code at all. You’re right, umbraco rocks!
cheers,
doug.
No problem, you can expect more screencasts to come !
Very nice Tim.
What software did you use to create the screencast? I really like the zoom in/out thing…
Hey Morten,
I used Camtasia Studio.
Well done Tim, a great screencast for beginners.
I think you could probably took it one step further of showing how you could pass a value from a document type or a querystring to the macro parameter.
//Warren
Thanks Warren, indeed you are right I should have added on how to pass a property value to the usercontrol. I’ll do an update when I have the time.
Cheers,
Tim
Tim,
Great idea, but looks like the link is down…
- Mark
Thanks, for pointing it out, is back up again.
Tim,
Thanks for this I need to implement several controls using third party dotnet packages (ecommerce, reporting etc), this is a great starting point.
The only issue I have is the public properties are not showing up when I click the browseproperties button, I have posted to the umbraco forums but so far all I hear back are crickets.
I’m using umbraco 3.03 and I tried using fckEditor rather than a textbox … it works OK just no properties here is the ascx:
public string DemoText
{
get
{
return FCKeditor1.Value;
}
set
{
FCKeditor1.Value = value;
}
}
public string ToolBarSet
{
get
{
return FCKeditor1.ToolbarSet;
}
set
{
FCKeditor1.ToolbarSet = value;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//Do Something
FCKeditor1.Value = “Cool!”;
}
Hi, Do the public properties get shown when you try another usercontrol ?
Yes, browse properties seems to work OK on AutoFormPlus
Looks like what I missed is in VS 2008 you have to create a floder in your project for the UserControl, then for some reason a seperate .CS file is created for your ascx file, i don’t know why it works but it seems to
Hey, thanks for the screencast, that’s really helpful.
Still though, it’s quite a complex process don’t you think, just to add dynamic content to an Umbraco page? It should be simpler than that I think. Also, how would you debug that with visual studio?
@Paul, if you manage your dynamic content with umbraco, there is no need to add custim usercontrols, this screencasts just shows how easy it is to add (existing).net controls to your umbraco site.
Hey Tim, thanks for the screencast, that’s really helpful.
daite na pivo;
Great screencast! Do you have an example using paramters??