We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Quote from: Briggsy at Sep 16, 2006, 03:12 AM

    Oh and has anyone made Wayfinder use accessibility keys like the modified version of Dropmenu by Garry?

    Instead of positioning via the top CSS property, you would use the bottom CSS property. That should do the trick (you may need to use a negative value equal to the height of your top menu...).
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 4095
      • 372 Posts
      Quote from: kylej at Sep 16, 2006, 08:39 AM

      Briggsy,
      I’m not sure how you would make the menu know to go up or down, maybe with some javascript.

      Can you point me to the aceeskeys mod of dropmenu you were talking about. I will give it a look, I don’t think it has been done yet.

      Thanks Kyle, have a look at http://modxcms.com/forums/index.php/topic,3031.0.html
        [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
        Admin Sandbox Login: sandbox Password: castle
        • 4095
        • 372 Posts
        Quote from: rthrash at Sep 16, 2006, 08:43 AM

        Quote from: Briggsy at Sep 16, 2006, 03:12 AM

        Oh and has anyone made Wayfinder use accessibility keys like the modified version of Dropmenu by Garry?

        Instead of positioning via the top CSS property, you would use the bottom CSS property. That should do the trick (you may need to use a negative value equal to the height of your top menu...).

        Thanks Ryan. I was looking for a way to have them drop downwards, except when it was going to be too long for the screen, then automatically go upwards. However I don’t want to us Javascript so I might just settle for having them all upwards as per your suggestion.
          [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
          Admin Sandbox Login: sandbox Password: castle
          • 31979
          • 26 Posts
          Please forgive me if I dont see the obvious, but it seems to be easy to create a list like this:

          <ul>
          <li class="level1">....</li>
          <li class="level1">....</li>
          </ul>
          <ul>
          <li class="level2">....</li>
          <li class="level2">....</li>
          ...

          Is it also possible to create that one?

          <ul class="level1" >
          <li>....</li>
          <li>....</li>
          </ul>
          <ul class="level2" >
          <li>....</li>
          ...


          Ignore my post, a class selector of this kind is not needed. rolleyes
            www.waso.com
            • 31654
            • 238 Posts
            Sorry if this has been posted already, I have looked first!... The only ref to CSSplay is to the old menu which doesn’t include IE7... and I could get it work work correctly anyway!!!!

            There is a new version of the CSSPlay drop down menu but I just can’t work out how to implement it!
            http://www.cssplay.co.uk/menus/final_drop2.html

            Can someone post the solution?... I’m many people will want to use it.
              Web Development, Web Hosting & Search Engine Marketing by:

              Vitalized | UK
              w. www.vitalized.co.uk

              Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

              Vitalized | Australia
              w. www.vitalized-australia.com.au

              Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible
              • 11975
              • 2,542 Posts
              Ok. So let’s go.

              SAMPLE CODE
              [[WayFinder? &startId=0 &level=0 &outerTpl=`wfFlyOutouterTpl` &parentRowTpl=`wfFlyOutparentRowTpl` &innerTpl=`wfFlyOutinnerTpl` &rowTpl=`wfFlyOutrowTpl` &innerRowTpl=`wfFlyOutinnerRowTpl` ]]

              CHUNK CODE

              &outerTpl=`wfFlyOutouterTpl`
              <div class="menu">
              <!-- wfFlyOutouterTpl -->
              <ul>
              [+wf.wrapper+]
              </ul>
              </div>
              


              &parentRowTpl=`wfFlyOutparentRowTpl`
              <!-- wfFlyOutparentRowTpl -->
              <li><a class="[+wf.classnames+]" href="[+wf.link+]">[+wf.linktext+]<!--[if IE 7]><!--></a><!--<![endif]-->
                  <!--[if lte IE 6]><table><tr><td><![endif]-->
                  [+wf.wrapper+]
                  <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </li>
              


              &innerTpl=`wfFlyOutinnerTpl`
              <!-- wfFlyOutinnerTpl -->
                  <ul>
                      [+wf.wrapper+]
                  </ul>
              


              &rowTpl=`wfFlyOutrowTpl`
              <li><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li>
              


              &innerRowTpl=`wfFlyOutinnerRowTpl`
              <!-- wfFlyOutinnerRowTpl -->
              <li><a class="[+wf.classnames+]" href="[+wf.link+]">[+wf.linktext+]<!--[if IE 7]><!--></a><!--<![endif]-->
                  <!--[if lte IE 6]><table><tr><td><![endif]-->
                  [+wf.wrapper+]
                  <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </li>
              


              CSS CODE from CSSPlay
              /* style the outer div to give it width */
              .menu {
              width:750px; 
              font-size:0.85em;
              padding-bottom:150px;
              }
              /* remove all the bullets, borders and padding from the default list styling */
              .menu ul {
              padding:0;
              margin:0;
              list-style-type:none;
              }
              .menu ul ul {
              width:150px;
              }
              /* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
              .menu li {
              float:left;
              width:150px;
              position:relative;
              }
              /* style the links for the top level */
              .menu a, .menu a:visited {
              display:block;
              font-size:11px;
              text-decoration:none; 
              color:#fff; 
              width:139px; 
              height:30px; 
              border:1px solid #fff; 
              border-width:1px 1px 0 0; 
              background:#758279; 
              padding-left:10px; 
              line-height:29px;
              }
              /* a hack so that IE5.5 faulty box model is corrected */
              * html .menu a, * html .menu a:visited {
              width:150px;
              w\idth:139px;
              }
              
              /* style the second level background */
              .menu ul ul a.drop, .menu ul ul a.drop:visited {
              background:#949e7c;
              }
              /* style the second level hover */
              .menu ul ul a.drop:hover{
              background:#c9ba65;
              }
              .menu ul ul :hover > a.drop {
              background:#c9ba65;
              }
              /* style the third level background */
              .menu ul ul ul a, .menu ul ul ul a:visited {
              background:#e2dfa8;
              }
              /* style the third level hover */
              .menu ul ul ul a:hover {
              background:#b2ab9b;
              }
              .menu ul ul ul :hover > a {
              background:#b2ab9b;
              }
              
              /* hide the sub levels and give them a positon absolute so that they take up no room */
              .menu ul ul {
              visibility:hidden;
              position:absolute;
              height:0;
              top:31px;
              left:0; 
              width:150px;
              }
              /* another hack for IE5.5 */
              * html .menu ul ul {
              top:30px;
              t\op:31px;
              }
              
              /* position the third level flyout menu */
              .menu ul ul ul{
              left:150px; 
              top:0;
              width:150px;
              }
              /* position the third level flyout menu for a left flyout */
              .menu ul ul ul.left {
              left:-150px;
              }
              
              /* style the table so that it takes no ppart in the layout - required for IE to work */
              table {position:absolute; top:0; left:0;}
              
              /* style the second level links */
              .menu ul ul a, .menu ul ul a:visited {
              background:#d4d8bd; 
              color:#000; 
              height:auto; 
              line-height:1em; 
              padding:5px 10px; 
              width:129px
              /* yet another hack for IE5.5 */
              }
              * html .menu ul ul a{
              width:150px;
              w\idth:129px;
              }
              
              
              /* style the top level hover */
              .menu a:hover, .menu ul ul a:hover{
              color:#fff; 
              background:#949e7c;
              }
              .menu :hover > a, .menu ul ul :hover > a {
              color:#fff;
              background:#949e7c;
              }
              
              /* make the second level visible when hover on first level list OR link */
              .menu ul :hover ul{
              visibility:visible; 
              }
              /* keep the third level hidden when you hover on first level list OR link */
              .menu ul :hover ul ul{
              visibility:hidden;
              }
              /* keep the fourth level hidden when you hover on second level list OR link */
              .menu ul :hover ul :hover ul ul{
              visibility:hidden;
              }
              /* make the third level visible when you hover over second level list OR link */
              .menu ul :hover ul :hover ul{ 
              visibility:visible;
              }
              /* make the fourth level visible when you hover over third level list OR link */
              .menu ul :hover ul :hover ul :hover ul { 
              visibility:visible;
              }
              
              


              Tested with 4 sublevels
              Tested with FF, Camino, Safari

              Enjoy

              :-)

              P.S: could be improved for class but I have no more time today

              EDIT: tested with wayfinder Beta 3

              EDIT 2: some of the chunks could be unuseful , look at the comment <!-- --> in the output code to know which chunks are not necessary

              EDIT 3: demo ==> http://www.dixsix.fr/contribs/wayfinder-cssplay-flyout.php
              Seems buggy after 4 levels. I’ve haven’t investigated to know which is involved (missing class - css code)

                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 31654
                • 238 Posts
                Thank you very much... Have you tested it in IE 5.5, 6 & 7?
                I got the last example to work in everything accept IE

                I’ll have a go at implementing the code tonight.

                Many thnaks for the reply.... Very Quick! grin
                  Web Development, Web Hosting & Search Engine Marketing by:

                  Vitalized | UK
                  w. www.vitalized.co.uk

                  Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

                  Vitalized | Australia
                  w. www.vitalized-australia.com.au

                  Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible
                  • 11975
                  • 2,542 Posts
                  I’m a mac user smiley

                  But i’ve been able to test with IE6 via parallels.
                  Looks fine.

                  :-)

                  P.S it’s a first draft so there could be bugs.
                  thx for reporting them to improve the chunk code
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 36805
                    • 354 Posts
                    I have a question about hiding and showing underlying items depending on whether the parent is active. I know this question is more a css question then a wayfinder question but i am hoping someone can point me to the right direction anyway.

                    I currently use this call (wayfinder beta3) in my left side navigation:

                    <div class="cssbox_body">
                    
                    [[Eff_Wayfinder? &startId=`0` &innerTpl=`wfInner_left` &outerTpl=`wfOuter_left` &levelClass=`level` &level=`3` &lastClass=``]]
                    
                    </div>
                    


                    In the css i achieve the correct hide/show behaviour by using the code below. I want this to happen for at least one more level and i can’t seem to figure out what css definitions i would need to add for this behaviour.

                      .cssbox_body ul ul
                    	{
                      	display: none; /* turn off sub menu items */
                      }
                    
                      .cssbox_body li.level1.active ul
                      {
                      	display: block; /* show the sub menu items when you clicked its level1 parent is active */
                      	margin: 0 0 0 0px;
                      }
                    


                    the wfInner_left chunk contains: <ul[+wf.classes+]>[+wf.wrapper+]</ul>
                    the wfOuter_left chunk contains: <ul id="topnav"[+wf.classes+]>[+wf.wrapper+]</ul>

                    Thanks in advance.
                      • 31654
                      • 238 Posts
                      Maybe I’m tied and I’m missing something here but it doesn’t work for me!

                      Using the code you posted just shows the WF call:
                      [!WayFinder? &startId=0 &level=0 &outerTpl=`wfFlyOutouterTpl` &parentRowTpl=`wfFlyOutparentRowTpl` &innerTpl=`wfFlyOutinnerTpl` &rowTpl=`wfFlyOutrowTpl` &innerRowTpl=`wfFlyOutinnerRowTpl`!]

                      I’ve tried to call it cached and uncached (and the page cached and uncached) but I just get the above call unrendered

                      http://www.opuspocus.co.uk/pa-hire-sound-stystem-hire


                      I should also say I’m using MODx 9.5. Although wayfind did work with the old call posted on here
                        Web Development, Web Hosting & Search Engine Marketing by:

                        Vitalized | UK
                        w. www.vitalized.co.uk

                        Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

                        Vitalized | Australia
                        w. www.vitalized-australia.com.au

                        Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible

                      This discussion is closed to further replies. Keep calm and carry on.