Copied to clipboard

Flag this post as spam?

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


  • Brian Reimer 30 posts 120 karma points
    Oct 15, 2013 @ 11:16
    Brian Reimer
    0

    Is it possible?

    Hi Jeavon
    Just found NavIt and been looking for something like this for ages :) :)
    Is it possible to get NavIt to do this - where there is a second <ul> with a different class than the first <ul>
    The first is children and the second is children2 - this is all inside the mainUlCssClass 
    <li><a href="category.html">Start</a>
               <ul class="children">
                  <li><a href="category.html">Pizza</a></li>
                  <li><a href="category.html">Lasagna</a>
                    <ul class="children2">
                      <li><a href="category.html">Pizza</a></li>
                      <li><a href="category.html">Lasagna</a></li>
                      <li><a href="category.html">Canelonni</a></li>
                    </ul>
                  </li>
                  <li><a href="category.html">Spaghetti</a></li>
                  <li><a href="category.html">Penne</a></li>
                </ul>
    </li>
    /Brian
  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Oct 15, 2013 @ 18:32
    Jeavon Leopold
    0

    Hi Brian,

    Glad it's useful for you.

    How about changing line 50 (in v1.1.0, just released) to

    if (newList && subPages.Any()){@Html.Raw("<ul class=\"children"+parent.Level+"\">")}
    

    Jeavon

  • Brian Reimer 30 posts 120 karma points
    Oct 16, 2013 @ 09:29
    Brian Reimer
    0

    Thanks - also changed som CSS and now it's working :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies