I've looked at the videos in Umbraco TV that pertain to adding a custom section but these video describe an older version of Umbraco. One were the section info started in a DB table called UmbracoApp. That table and method no longer exists.
All I know already is that the Config/application.config file is where you start in these newer releases of Umbraco.
But there has to be more to it than that? Where is this documented? Where are the tutorials? Why do I pay for Umbraco TV when the videos I need are not relevent to the current release of the product? I'd understand some feet dragging if the videos were free. But I'm paying for them!
Can anyone point me to a tutorial on adding a custom section/tress etc in Umbraco 6?
I have found a tutoral on Umbraco 4.11, but not that when you create the Application and Tree classes, the applications.config and trees.config files are automatically populated with entries, but the section still doesn't show in the admin panel.
Ah!
I have found one part at least - I need to turn on access in the user's section part of the admin. Have done that, but still get no icon :(
I'm trying to add a "dictionary" application, with the exact same functionality as the dictionary element within settings, but accessible for users without access to settings.
To debug, I've tried just duplicating an existing application:
What you might do is add a real custom section, instead of re-using an umbraco section. I think somethings going on there that might break your trying to use it separately.
For example. Add the following code in a cs file to your app_code directory and reference it in the trees/applications files, and you'll see a new section show up in the users section. I tried it out here. It works. (though the populated nodes weren't visible, but thats a small issue)
using System; using System.Collections.Generic; using System.Web; using umbraco.cms.presentation.Trees; using umbraco.BusinessLogic.Actions; using umbraco.interfaces; using System.Text; using umbraco.businesslogic; using Umbraco.Core.Persistence; using Umbraco.Core;
namespace TestSection.Trees { [Tree("testsection", "testsection", "TestSection admin")] public class TestSection : BaseTree { private UmbracoDatabase _db = null;
public TestSection(string application) : base(application) { _db = ApplicationContext.Current.DatabaseContext.Database; }
Excuse me for diggin up the old thread, but what I've observed today is that only the admin-user created during installation can see custom applications in the "Sections" part of user management form. Even setting another user with Administrator role doesn't let him to see the custom applications privilege in "Sections". Umbraco version is 6.1.6
I see the same as Michał Skuza in 6.1.6. I usually have to edit the umbracoUser2app table if the user I login with is not the one with the userId 1 e.g. the default admin user.
Yes, I can confirm this behaviour in 6.1.6. Only super admin (account created when installing Umbraco) can see custom sections and set them visible for other admins. Since then it is visible for them and they can manage it as well.
Creating a custom section in Umbraco 6?
How do I add a custom section to Umbraco 6?
I've looked at the videos in Umbraco TV that pertain to adding a custom section but these video describe an older version of Umbraco. One were the section info started in a DB table called UmbracoApp. That table and method no longer exists.
All I know already is that the Config/application.config file is where you start in these newer releases of Umbraco.
But there has to be more to it than that? Where is this documented? Where are the tutorials? Why do I pay for Umbraco TV when the videos I need are not relevent to the current release of the product? I'd understand some feet dragging if the videos were free. But I'm paying for them!
Can anyone point me to a tutorial on adding a custom section/tress etc in Umbraco 6?
Hi Brad,
I think you should check this blog: creating-custom-applications-and-trees-in-umbraco-4-8 (great job, Matt!)
The points of your attention should be /config/trees.config and /config/applications.config files.
Radek
Thank you Radek.. That looks like what I am after. Getting into it now. .
Hi
Link is broken - what a pity
/Paul S
Hi
Found this instead
http://www.theoutfield.net/blog/2012/07/creating-custom-applications-and-trees-in-umbraco-48plus
/Paul S
ARGH! Where is there good documentation on this?
I have found a tutoral on Umbraco 4.11, but not that when you create the Application and Tree classes, the applications.config and trees.config files are automatically populated with entries, but the section still doesn't show in the admin panel.
Ah!
I have found one part at least - I need to turn on access in the user's section part of the admin. Have done that, but still get no icon :(
so, did you solve the puzzle already? maybe otherwise send me the code. i can have a look.
btw. if you see the section in the users permissions, you should see the section icon in the sections div as well. so which icon arent you seeing?
Adding an application to the application.config and trees.config has resulted in no change in the user permissions section.
The new application hasn't registered
Umbraco 6.1.14
Tried restarting the application pool? Also you might have referenced the namespace/assembly wrong in the applications.config.
I'm trying to add a "dictionary" application, with the exact same functionality as the dictionary element within settings, but accessible for users without access to settings.
To debug, I've tried just duplicating an existing application:
And in trees.config:
This is a duplicate of an existing entry.
And indeed, I've been resetting the app pool (the old turn it off and turn it on again!) and it doesn't work.
Jeroen Breuer once made a package that does the same thing. Whether it works in Umbraco 6 I don't know.
http://our.umbraco.org/projects/backoffice-extensions/digibiz-dictionary-section
As to your codes I compared yours to mine which are:
Application:
And Trees:
I notice I have the
attributes and you have not. Might be those that are needed.
Thanks for taking the time to reply. I did consider that those attributes might be necessary but adding them didn't seem to help.
I did see the digibiz package but was put off by reports of some issues and the author saying he currently used a different package!
What you might do is add a real custom section, instead of re-using an umbraco section. I think somethings going on there that might break your trying to use it separately.
For example. Add the following code in a cs file to your app_code directory and reference it in the trees/applications files, and you'll see a new section show up in the users section. I tried it out here. It works. (though the populated nodes weren't visible, but thats a small issue)
trees.config
applications.config
.cs file for app_code directory
Excuse me for diggin up the old thread, but what I've observed today is that only the admin-user created during installation can see custom applications in the "Sections" part of user management form. Even setting another user with Administrator role doesn't let him to see the custom applications privilege in "Sections". Umbraco version is 6.1.6
Michał Skuza, I've just tried that and didn't have any problems in v6.1.6. Works fine.
I see the same as Michał Skuza in 6.1.6. I usually have to edit the
umbracoUser2app
table if the user I login with is not the one with the userId 1 e.g. the default admin user.Yes, I can confirm this behaviour in 6.1.6. Only super admin (account created when installing Umbraco) can see custom sections and set them visible for other admins. Since then it is visible for them and they can manage it as well.
is working on a reply...