Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels Lynggaard 193 posts 551 karma points
    Aug 12, 2012 @ 13:02
    Niels Lynggaard
    0

    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;

    <add alias="flightroutes" name="flightroutes" icon=".traymember" sortOrder="7" />

     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?

  • Niels Lynggaard 193 posts 551 karma points
    Aug 13, 2012 @ 13:44
    Niels Lynggaard
    0

    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...

  • Douglas Ludlow 210 posts 366 karma points
    Aug 13, 2012 @ 17:28
    Douglas Ludlow
    0

    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?

  • Niels Lynggaard 193 posts 551 karma points
    Aug 15, 2012 @ 12:25
    Niels Lynggaard
    0

    I'll try do that and see what happens :)

  • Andrew Munro 78 posts 161 karma points
    Oct 30, 2012 @ 00:51
    Andrew Munro
    0

    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.

  • Pasang Tamang 258 posts 458 karma points
    Oct 30, 2012 @ 02:48
    Pasang Tamang
    0

    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

  • Niels Lynggaard 193 posts 551 karma points
    Oct 31, 2012 @ 15:22
    Niels Lynggaard
    0

    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!

  • Andrew Munro 78 posts 161 karma points
    Oct 31, 2012 @ 15:25
    Andrew Munro
    0

    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.

  • Marcus Abrahamsson 3 posts 23 karma points
    Dec 09, 2012 @ 12:25
    Marcus Abrahamsson
    0

    Anyone who been able to get this to work?

  • Andrew Munro 78 posts 161 karma points
    Dec 10, 2012 @ 15:24
    Andrew Munro
    0

    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. 

     

  • Marcus Abrahamsson 3 posts 23 karma points
    Dec 10, 2012 @ 16:13
    Marcus Abrahamsson
    0

    Thanks, had forgot to set the permissions.

Please Sign in or register to post replies

Write your reply to:

Draft