Lee Kelleher

Umbraco Package – User Control File Tree

Posted on . Estimated read time: 2 minutes (309 words)

A few months ago, Tim Geyssens (aka Umbraco rockstar) released a package that gave you access to the *.config files in the /config/ folder. This has been a lifesaver in those few times where I have only had web-access to an Umbraco install and needed to tweak some config settings.

Recently I found myself in the same situation, but this time I needed to quickly update a few text changes to an ASCX user-control. Due to the nature of the .NET user-controls in Umbraco, there is no native way of accessing/editing those files via the admin back-end.

… well, not until now …

Following on from Tim’s lead with the Config Tree package, I have developed a “User Control File Tree” for the developer section.

This package displays all the user-control files (from the /usercontrols/ folder), allowing you to edit the front-end ASCX code/mark-up.  (There is no way to edit the code-behind using this package).  If the user-control contains any inline code (C#/VB.NET), then you will be able to edit it.  Keep in mind that there is no validation when editing the user-controls – so please be careful!

You can download the User Control File Tree package from here.

I created the package using Umbraco 4’s built-in Create Package Wizard. Please note that this package has been designed to work with v4 (and above), apologies to v3 users.

To install the package, go to the Developer section of your Umbraco back-end, expand the “Packages” folder, click on “Install local package”, select the “User_Control_Files_Tree_1.0.zip” (from wherever you saved it) and press the “Load Package” button.  Follow a few more on-screen steps and you’ll be done in no time!

If you have any problems with it, please do let me know – either by leaving a comment here or posting a thread on the Umbraco forum.