We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16183
    • 1,390 Posts
    Quote from: FuryDE at Jun 24, 2009, 11:28 AM

    Quote from: kongondo at Jun 24, 2009, 11:14 AM

    <li class="item[+wf.iterator+]"> some other placeholders here </li>

    Looks like it could work. But if you are using unique (!) classes, can you use ID instead? The parameter [tt]&rowIdPrefix=`item`[/tt] will provide each [tt]<LI>[/tt] with an [tt]id="item"[/tt], "item" followed bei the document id.

    Martin

    Unless of course he has several WF menus in his site with those "unique" classes, then an ID won’t do wink I doubt this is the case though. The "problem" with rowIdPrefix is you have to know the id of the docs to style your IDs in your CSS. On the other hand the "problem" with wf.iterator is that you have to know what menu item is at what level - kinda evens out the argument...

    offtopic// read somewhere that jQuery will work faster with IDs as opposed to classes.

    cheers/k
      • 18878
      • 210 Posts
      Quote from: FuryDE at Jun 24, 2009, 11:28 AM

      Quote from: kongondo at Jun 24, 2009, 11:14 AM

      <li class="item[+wf.iterator+]"> some other placeholders here </li>

      Looks like it could work. But if you are using unique (!) classes, can you use ID instead? The parameter [tt]&rowIdPrefix=`item`[/tt] will provide each [tt]<LI>[/tt] with an [tt]id="item"[/tt], "item" followed bei the document id.

      Martin

      Martin / Kongondo,

      Thanks a lot, your suggestions worked. It’s exactly what I needed.

      I used a &rowTpl= calling a chunk with the following code:

      <li [+wf.id+] class="item[+wf.iterator+] [+wf.classnames+]">
      <a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>
      [+wf.wrapper+]
      </li>

      This outputs:
      <ul>
      <li class="item1 first active McOdd">
      <a href="http://server1:191/" title="Home" >Home</a>
      </li>
      <li class="item2 McEven">
      <a href="/index.php?id=2" title="News" >News</a>
      </li>
      etc.

      Thanks a lot!

      Mc
        • 16183
        • 1,390 Posts
        @Mc,

        Glad it worked for you. Just curious, did you attempt to try it with menus with several levels to see how it is applied and if there are any bugs?

        Thanks
        /k
          • 18878
          • 210 Posts
          Quote from: kongondo at Jun 24, 2009, 02:20 PM

          @Mc,

          Glad it worked for you. Just curious, did you attempt to try it with menus with several levels to see how it is applied and if there are any bugs?

          Thanks
          /k

          /k,

          Well no, the menu I’m using is just the main horizontal menu with only one level. I’ll post my experience when I use several levels.

          Regards,

          Mc
            • 26931
            • 2,314 Posts
            Hi there...

            Since protected pages can now be shown, in menus even if they’re not accessible, maybe a couple of new classes are in order:

            is there a list of new parameters that can be used to archieve the above?

            thanks a lot, j
              • 26575
              • 57 Posts
              christianseel Reply #46, 17 years ago
              Hi,
              i tried to use PHx into my rowTpl of wayfinder:
              [+phx:if=`[+navigationexclude+]`:is=`0`:then=`<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+navigation_text+]</a>[+wf.wrapper+]</li>`:else=``+]

              but nothing is displayed. i have no idea why since hours.

              navigationexclude - is a tv, values can be 0 or 1: display / don’t display


              only the outerTpl is displayed:
              <ul id="Navigation" >
              
              
              
              
              
              
              
              
              
              
              </ul>
              



              some help would be nice.
              chris
                christian seel - www.christianseel.com
                web developer & designer at chsmedien.de
                twitter: @christianseel / @chsmedien
                • 10313
                • 375 Posts
                What happens when you put some test string into the [tt]else=``[/tt] part?
                  • 17883
                  • 1,039 Posts
                  Tried [+wf.navigationexclude+]?
                    • 26575
                    • 57 Posts
                    christianseel Reply #49, 17 years ago
                    Quote from: FuryDE at Sep 03, 2009, 04:49 AM

                    What happens when you put some test string into the [tt]else=``[/tt] part?

                    oh! someting is working... every item outputs the else-sting. it seems like all items have navigationexclude=1

                    but if i only put [+navigationexclude+] into my rowTpl, i have displayed 0 and 1 - as it should be.


                    @MadeMyDay
                    yes, output is the same like befor with [+navigationexclude+]
                      christian seel - www.christianseel.com
                      web developer & designer at chsmedien.de
                      twitter: @christianseel / @chsmedien
                      • 17883
                      • 1,039 Posts
                      Ok, try:

                      [+phx:input=`[+navigationexclude+]`:is=`0`:then=`<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+navigation_text+]</a>[+wf.wrapper+]</li>`:else=`test`+]