Project Description
This was an early version of a simple package creator for Umbraco as a Visual Studio project.
The project wont be developed any more. This is much better : :-) http://www.benjaminhowarth.com/2010/5/3/app_code--usercontrol-editor-for-umbraco-403-launched.aspx instead.
This is well suited for Umbraco developers that do most of their magic inside the Umbraco UI and do not have a cool Visual Setup already. With this download one can add .net-functionality to XSLT in minutes, without having access to the web server file system.
There's no rocket science involved, this is just a basic Visual Studio 2008 project with some umbraco binaries, a sample XSLT extension class and a sample Web user control. Plus a file and a folder needed for package creation.
To begin adding your own code to an existing Umbraco site you just need to:
1) download and open up the sample project in Visual studio 2008
2) add your own code to it, for example in MyXsltExtension.cs to add XSLT extension functionality.
3) build the project, it creates a package MyPackage.zip automatically
4) install MyPackage.zip as a local package into your Umbraco Installation. Then you have your own functions ready to use in the Umbraco Xslt Editor. <xsl:value-of select="MyXsltExtension:HelloWorld()"/>
Since there are references to umbraco-core dll's you can also iterate within your cms nodes, as well as edit or add new ones - and everything else you might need, take a look at the API reference.
Web user control
The project also includes a sample Ascx file which you can use as a stub for your own user control. Edit it, add functions, build and install the package. Then you can add a macro which uses the uploaded Ascx.
Note that when you install new versions of your package you will have several package nodes in the installed package tree. Remove old ones by uninstalling them before you add a new one. Or uninstall and untick the “remove file” check box(es) to keep the necessary files.
The root namespace is UmbMy, the package is called MyPackage and the XSLT extension MyXsltExtension, the dlls included come from Umbraco 4.03.
Have fun!
Jonas