Copied to clipboard

Flag this post as spam?

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


  • Greg McMullen 49 posts 195 karma points
    Dec 05, 2013 @ 21:36
    Greg McMullen
    0

    Multi-Tiered Navigation

    Here's the easiest summary I could come up with:

    Navigation structure that would be "essentially endless" while maintaining the ancestor/descendant structure based on the currently selected node.

    I work in Higher Ed, we're trying to figure out a navigational structure for sub-sites of our Academic Departments. At this time, we have an Architecture and navigation that is usable up to 2 levels beyond the department landing page.

    While posting, I found this and will give it a go. But any advice would be appreciated. http://our.umbraco.org/forum/developers/razor/43247-Using-Razor-to-create-a-push-down-sub-navigation

    Again, we would want the navigation for a specific area to always be present at the highest level, and then be able to breakdown with children.

    Current Tree:

    • Homepage
      • Academics
        • Academic Departments
          • Math (starting point for nav)
            • Degree Requirements
              • Degrees/Majors (stops at this depth)
              • Double Majors/Minors

    Desired Tree:

    • Math
      • Program
        • Undergraduate Degrees
          • Majors
            • Requirements
              • etc.
                • etc.
      • Activities
      • etc.
    Note: Please don't ask me why; I'm not sure why it's necessary to have a site that goes 11+ levels either...

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Dec 06, 2013 @ 21:14
    Jeavon Leopold
    100

    Hi Greg,

    Are you using Mvc? If you are, you may find this package does what your after. This package just installs a single partial view which you see directly here.

    Jeavon

  • Greg McMullen 49 posts 195 karma points
    Dec 09, 2013 @ 16:10
    Greg McMullen
    0

    Thanks Jeavon, we're not yet using Mvc still on webforms in 4.11.x

    I'll see if I can piece something together using your code as a reference point.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Dec 09, 2013 @ 20:35
    Jeavon Leopold
    0

    Np, it could be converted to a Partial View Macro (Mvc based Macros for WebForms templates), that would work in v4.11.x or into a classic Razor Macro.

    Does it look like it does what you need?

  • Greg McMullen 49 posts 195 karma points
    Dec 16, 2013 @ 22:08
    Greg McMullen
    0

    Finally got a chance to test it in my local environment. It does what I need it to, but I will have to figure a way to get it to work in 4.11.x without views (boo!).

    Awesome package! Thank you,

    -- Greg

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Dec 16, 2013 @ 22:37
    Jeavon Leopold
    0

    Hey Greg,

    I think it would be quite easy to convert to a partial view macro which are available in 4.11 and use with WebForms, I'll check it works and come back to you.

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft