Copied to clipboard

Flag this post as spam?

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


  • joshua thompson 3 posts 23 karma points
    Mar 28, 2014 @ 02:26
    joshua thompson
    0

    Creating a Select Element of Navigation

    I'm pretty new to razor and am struggling a bit here. Ideally what i'd like to do is create a select element that contains the site navigation (for a responsive site). i can get the top level nav, but not the subnav... and i can't get any of it to link out. basically i have hit a wall... repeatedly.

    if anyone can point in a direction to start it would be much appreciated.

    my other option woul dbe to do off canvas nav, which i think i can make work.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 28, 2014 @ 08:49
    Jan Skovgaard
    1

    Hi Joshua

    What version of Umbraco are you using and do you have some code you could share?

    And have you tried playing around with some of the base-examples that can be chosen if you create a razor macro in the developer section?

    Also it's a good idea to have the Razor cheatsheet open in order to figure out how to do something :)

    /Jan

  • Jeavon Leopold 3074 posts 13631 karma points MVP 11x admin c-trib
    Mar 28, 2014 @ 11:22
    Jeavon Leopold
    1

    Hi Joshua,

    The NavIt package might be useful for you either to use directly or as a guide as to how you can construct a nav partial view.

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft