Copied to clipboard

Flag this post as spam?

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


  • Mustufa Baig 19 posts 41 karma points
    Jan 12, 2011 @ 22:08
    Mustufa Baig
    0

    Custom AppTree class not picked up by umbraco

    Hi there,

    I followed the umbraco.tv video series to create custom section and created a custom app tree inheriting from base tree.

    treeHandlerAssembly: Common.Web

    treeHandlerType: Common.Web.Umbraco.Extensions.LoadUgc

    But for some reason tree is not rendering although i can see the new section. I tried to put a break point inside the custom app tree class but it turns out its not being hit at all bu umbraco.

    i am using umbraco 4.5.2

    thanks

     

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jan 13, 2011 @ 12:22
    Matt Brailsford
    0

    Hi Mustafa,

    I think you want to remove "Common.Web." from you treeHandlerType. Umbraco auotmatically prepends treeHandlerAssembly to the begining of treeHandlerType when trying to resolve an appTree type.

    Matt

  • Mustufa Baig 19 posts 41 karma points
    Jan 13, 2011 @ 14:01
    Mustufa Baig
    0

    It worked!

    It is kind of confusing though. It is not the convention normally we follow in .NET

    Thank you

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jan 13, 2011 @ 14:03
    Matt Brailsford
    0

    Hey Mustufa,

    Yea, I thought the same when I cam across it the first time, but you get used to it =)

    Glad it's working for you now.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft