The full code I'm using is at http://pastebin.com/wMWYdRZz , and I have a 'drivers' section in my wwwroot/umbraco folder into which I've copied the aspx files.
Check and double check the AssemblyName is inserted in the TreeHandlerAssembly column also Check and double check that the type is inserted in the TreeHandlerType.column. This is case sensitive.
Oh, saw the table: it seems to be a typo: your class to call is "Drivers.loadDrivers" in the database table the treeHandlerType is set to "drivers.loadDrivers" => as I know it is case sensitive.
And don't mixup the namespace with the filename of the dll
For some reason the pages are now showing in the tree, but I'm having probems with UserControls in the Page_Load event in them. If I include my user
controls on the custom pages (outside of Umbraco) with
I get a null reference exception in the UserControl's Page_Load event
(which references an ASP.NET control which is used by the UserControl
itself.
It happens both with and without Umbraco (when the pages to be integrated run outside of Umbraco in their own solution). I've never seen this before having used 99% solely Web Site projects and not Web Applications.
Custom Section - Nothing In Tree
I'm trying to create a custom tree section using the code in the tutorial at http://www.simm.dk/umbraco-corner/articles/making-custom-sections-and-trees-inside-umbraco---part-i.aspx and http://www.geckonewmedia.com/blog/2009/8/3/how-to-create-a-custom-section-in-umbraco-4 , but when I copy the resulting .dll to wwwroot/bin, although I see my section in the control panel, the tree is just a root node which is empty. None of my nodes or pages are shown.
The full code I'm using is at http://pastebin.com/wMWYdRZz , and I have a 'drivers' section in my wwwroot/umbraco folder into which I've copied the aspx files.
Hi,
what does your umbracoAppTree table look like ?
--
n
Hi,
You need to configure the tree in the database also, that was descibed in part II of the Siim.dk blogpost. Yopu find it here http://www.simm.dk/umbraco-corner/articles/making-custom-sections-and-trees-inside-umbraco---part-ii.aspx
Cheers,
Richard
I did follow the database part, my umbracoAppTree tables looks like this:
http://img443.imageshack.us/img443/1343/apptree.png
I also have entries in umbracoApp and umbracoUser2app, which I added using the tutorial at http://www.geckonewmedia.com/blog/2009/8/3/how-to-create-a-custom-section-in-umbraco-4
hmm - looks right - have you restarted the app (touch web.config and save it) ?
Restarting the app had no effect. :(
Does your umbracoLog say anything ?
It doesn't seem to be logging control panel events.
Check and double check the AssemblyName is inserted in the TreeHandlerAssembly column also Check and double check that the type is inserted in the TreeHandlerType.column. This is case sensitive.
Cheers,
Richard
My treeHandlerAssembly is Drivers, treeHandlerType is loadDrivers and my loader looks like this:
namespace Drivers
{
public class loadDrivers : BaseTree
{
public loadDrivers(string application)
: base(application)
{ }
...
Just add some umbraco logging into the treeHandler to see which part(s) of the code gets touched or not.
Old style debugging ;-)
hth, Thomas
Oh, saw the table: it seems to be a typo: your class to call is "Drivers.loadDrivers" in the database table the treeHandlerType is set to "drivers.loadDrivers" => as I know it is case sensitive.
And don't mixup the namespace with the filename of the dll
I made the same fault million times before ;-)
hth, Thomas
For some reason the pages are now showing in the tree, but I'm having probems with UserControls in the Page_Load event in them. If I include my user controls on the custom pages (outside of Umbraco) with
Everything works in my Page_Load event which uses server controls in the UCs, but due to Umbraco, if I include them with :
I get a null reference exception in the UserControl's Page_Load event (which references an ASP.NET control which is used by the UserControl itself.
It happens both with and without Umbraco (when the pages to be integrated run outside of Umbraco in their own solution). I've never seen this before having used 99% solely Web Site projects and not Web Applications.
is working on a reply...