I am trying to figure out how to add custom sections in Umbraco 4.8
I have an old 4.7.1 installation that contains the custom section that I want to port to a new 4.8 installation.
I found this blog-post (http://blog.mattbrailsford.com/2012/07/18/creating-custom-applications-and-trees-in-umbraco-4-8/) , explaining that I no longer need to manually insert lines in the DB tables, but instead these things are in config files.. So far so good.
For starters I just inserted one line in the applications.config file;
and I expected the backend to find this new section after touching web.config and that I was able to grant users access to the new section.. But my installation doesn't care about that..
What is it that I'm not seeing/understanding? What other steps do I need to take to add a new section?
I also tried adding the lines to the two tables in the DB, and both applications.config and trees.config gets updated with the two lines, but the backend doesn't show the section under the different users (Since I need to grant access)...
I haven't worked with new sections in 4.8 yet, but don't you have to create a class that implements IApplication and include the annotations/attributes he describes?
Hi Niels - Did you have any luck with this? I've tried creating the Application and the Tree and I'm not getting anything. It even automatically creates me trees.config and application.config entries but It never shows up.
But, check the permissions on the user... you have to open the permissions for the new sections once they are created.. (I know this from earlier versions)..
Havent worked on it for a while, but I am definetly going to try again with recycling app-pool inbetween to se if that fixes anything.
Thanks Niels. I will keep you updated if I come up with anything new. As it stands right now, I cant even add an application. I've checked in my permissions but my new apps never actually appear in the sections list. I've also tried debugging but it never actually makes it to my ITree types.
Hey Marcus - With the help of Matt Brailsford we managed to figureout the problem for me. The issue was that my user didn't have access to the section as defined in the user permissions. The other problem was that my user (administrator but not admin) did not have acccess to see or assign the section
Try these steps:
1) Verify that umbraco has detected your app and treees as shown in the config files. 2) Login as your admin user (not just an administrator) 3) Edit your user's permissions and enable access to your section 4) Login as your user
At this point you should see your application in the sections.
Creating custom section in Umbraco 4.8
Hi Guys
I am trying to figure out how to add custom sections in Umbraco 4.8
I have an old 4.7.1 installation that contains the custom section that I want to port to a new 4.8 installation.
I found this blog-post (http://blog.mattbrailsford.com/2012/07/18/creating-custom-applications-and-trees-in-umbraco-4-8/) , explaining that I no longer need to manually insert lines in the DB tables, but instead these things are in config files.. So far so good.
For starters I just inserted one line in the applications.config file;
and I expected the backend to find this new section after touching web.config and that I was able to grant users access to the new section.. But my installation doesn't care about that..
What is it that I'm not seeing/understanding? What other steps do I need to take to add a new section?
I also tried adding the lines to the two tables in the DB, and both applications.config and trees.config gets updated with the two lines, but the backend doesn't show the section under the different users (Since I need to grant access)...
Going nuts here...
I haven't worked with new sections in 4.8 yet, but don't you have to create a class that implements IApplication and include the annotations/attributes he describes?
I'll try do that and see what happens :)
Hi Niels - Did you have any luck with this? I've tried creating the Application and the Tree and I'm not getting anything. It even automatically creates me trees.config and application.config entries but It never shows up.
Hi Guys,
The problem may be of cache. I also tried by changing into web.config files but no luck then I reset the app pool and works fine.
Thanks
PTamang
I never got this to work..
But, check the permissions on the user... you have to open the permissions for the new sections once they are created.. (I know this from earlier versions)..
Havent worked on it for a while, but I am definetly going to try again with recycling app-pool inbetween to se if that fixes anything.
Let me know if you are succesfull!
Thanks Niels. I will keep you updated if I come up with anything new. As it stands right now, I cant even add an application. I've checked in my permissions but my new apps never actually appear in the sections list. I've also tried debugging but it never actually makes it to my ITree types.
Anyone who been able to get this to work?
Hey Marcus - With the help of Matt Brailsford we managed to figureout the problem for me. The issue was that my user didn't have access to the section as defined in the user permissions. The other problem was that my user (administrator but not admin) did not have acccess to see or assign the section
Try these steps:
1) Verify that umbraco has detected your app and treees as shown in the config files.
2) Login as your admin user (not just an administrator)
3) Edit your user's permissions and enable access to your section
4) Login as your user
At this point you should see your application in the sections.
Thanks, had forgot to set the permissions.
is working on a reply...