We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15987
    • 786 Posts
    There are many places to find Information that will help you use Wayfinder. Here is a list of possible areas of interest:

    The MODx Wiki: http://wiki.modxcms.com/index.php/Wayfinder

    The snippet and any updates are found here: http://modxcms.com/Wayfinder-868.html

    Info & Examples on My Site: http://www.muddydogpaws.com/notebook/wayfinder-10.html

    Of course, going through the forums is always a good place to look too. Use the google search at the top to help find what your looking for.

    If you have any examples or other pointers for how to use Wayfinder please post them here.

    Thanks,
    KyleJ
      • 7923
      • 4,213 Posts
      Great job with your notebook page and the examples! Could you add the revisited CSSPlay menus to the examples too? I think they are most used now.. You can find them in this package. Anyways, Great work as allways.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 15987
        • 786 Posts
        Thanks Doze, I have added the 2 revisited examples to my site.
          • 23804
          • 4 Posts
          Hello all,

          i’m trying to change the menu with wayfinder but with only a little result.
          I worked through all the items in the links above but it still doesn’t work completely.
          When i use a wayfinder snippet i get a menu but the problem is that it doesn’t drop down.
          I tried the things from http://www.muddydogpaws.com/development/wayfinder/examples.html exactly.

          Can anyone tell me what is the small thing i look over?

          Thanks in advance,

          Dennis
            • 7455
            • 2,204 Posts
            Dennis dit you set the right doctype:
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml">
            

            I had problems using the wrong doctype

            Dimmy
              follow me on twitter: @dimmy01
              • 25883
              • 128 Posts
              Hi guys,

              I am having the same problem.

              BTW great work Kyle on the demos. I didn’t try much with it yet because I think the problem lies with my CSS.

              On this template, Wayfinder works fine: http://intrigue.websitewelcome.com/~hhi/index.php?id=2 It works naturally without any chunks.

              On this other template, Wayfinder won’t do the drop-down: http://intrigue.websitewelcome.com/~hhi/index.php?id=3

              Here is the template code:

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
              
              <head>
              {{SiteMetaChunk}}
              <base href="[(site_url)]"/>
              <title> [*pagetitle*] | [(site_name)]</title>
              <link rel="stylesheet" type="text/css" href="[(base_url)]assets/templates/corporateblue/layout.css" />
              <style type="text/css">
              <!--
              	@import url("layout.css");
              -->
              </style>
              </head>
              <body>
              <div id="wrapper">
              	<div id="header">
              {{LogoChunk}}
              	</div>
              <div id="main-menu">
              <div id="navigation">
              [[Wayfinder? &startId=`0`]]
              </div>
              </div>
              
              
              
              	<div id="content">
              		<div id="left">
              [*#content*]
              						</div>
              	</div>
              	
              	<div id="right">
              		[*#Box1*]
              		<hr class="hr1" />
              		[*#Box2*]
              		<hr class="hr1" />
              		[*#Box3*]
              		<hr class="hr1" />
              	
              	</div>
              
              	<div class="hr1">
              		<hr />
              	</div>
              
              
              	<div id="footer">
              		{{Footer}}
              </div>
              </div>
              </body>
              </html>
              


              Here is the layout css:

              /** BASIC */
              
              html, body {
              	height: 100%;
              }
              
              body {
              	margin: 0px;
              	padding: 0px;
              	background: #273840 url(images/homepage01.jpg) repeat-x left top;
              	font-size: 11px;
              	text-align: justify;
              	color: #273840;
              }
              
              h1 {
              	font-family: Arial, Helvetica, sans-serif;
              	font-weight: bold;
              	text-transform: uppercase;
              }
              
              h2 {
              	font-size: 14px;
              	text-transform: uppercase;
              }
              
              h2.bigger {
              	font-size: 18px;
              	text-transform: uppercase;
              }
              
              h3 {
              	margin: 0px;
              	padding: 0px;
              	font-size: 11px;
              	text-transform: uppercase;
              }
              
              h4 {
              	margin: 0px;
              	padding: 0px;
              	font-size: 11px;
              }
              
              p, ol, ul {
              	margin-top: 0px;
              }
              
              .img1 {
              	float: left;
              	margin: 4px 15px 0px 0px;
              	border: 2px solid #608B9F;
              }
              
              .hr1 {
              	clear: both;
              	margin-top: 10px 0px 10px 0px;
              	border: 1px dashed #608B9F;
              }
              
              .hr1 hr {
              	display: none;
              }
              
              /** WRAPPER */
              
              #wrapper {
              	width: 800px;
              	height: 100%;
              	min-height: 100%;
              	margin: 0px auto;
              	padding: 30px;
              	background-color: #FFFFFF;
              }
              
              html>body #wrapper {
              	height: auto;
              }
              
              /** HEADER */
              
              #header {
              	margin-bottom: 30px;
              }
              
              #header h1 {
              	margin: 0px;
              	padding: 0px;
              	font-size: 30px;
              }
              
              #header h2 {
              	margin: 0px;
              	padding: 0px;
              	font-size: 12px;
              	text-transform: lowercase;
              }
              
              /** MAIN-MENU */
              
              #main-menu {
              	margin: 0px 0px 30px 0px;
              	background: #4F7383 url(images/homepage06.gif) no-repeat right top;
              	text-transform: uppercase;
              }
              
              #main-menu ul {
              	height: 28px;
              	margin: 0px;
              	padding: 11px 0px 0px 7px;
              	background: transparent url(images/homepage02.gif) no-repeat left top;
              	list-style: none;
              }
              
              #main-menu li {
              	display: inline;
              }
              
              #main-menu a {
              	padding: 0px 8px 0px 15px;
              	background: transparent url(images/homepage03.gif) no-repeat left center;
              	text-decoration: none;
              	font-weight: bold;
              	color: #FFFFFF;
              }
              
              #main-menu .first a {
              	background: none;
              }
              
              #main-menu ul {
              }
              
              /** CONTENT */
              
              #content {
              }
              
              #left {
              	float: left;
              	width: 600px;
              }
              
              #right {
              	float: left;
              	width: 170px;
              	margin: 0px 0px 0px 20px;
              }
              
              /** FOOTER */
              
              #footer {
              	clear: both;
              	padding: 20px 0px 0px 0px;
              }
              
              #footer ul {
              	margin: 0px;
              	padding: 0px;
              	list-style: none;
              	text-align: center;
              }
              
              #footer li {
              	display: inline;
              }
              
              #footer a {
              	padding: 0px 10px;
              }
              
              #footer p {
              	text-align: center;
              	font-size: 9px;
              }
              


              You can see I didn’t delete any of the main-menu CSS that the template came with. I don’t exactly know what I’m doing there, so I’ve left it alone.

              Thank you for any suggestions!
                • 5588
                • 6 Posts
                Quote from: kylej at Oct 27, 2006, 07:21 PM

                If you have any examples or other pointers for how to use Wayfinder please post them here.

                Thanks,
                  KyleJ

                Hi,

                I was looking for documentation about the &config parameter, but all the info i find is for Wayfinder 1.0; also the Wayfinder 2.0 zip i downloaded contain’s the old 1.0 documentation. The wiki also is outdated.

                I found up to date documentation on this site: http://www.modxcms.de/parameter-wayfinder.html (German is no problem for since we learned that in Dutch school). But for other new ModX users it would be great if there’s up-to-date English Wayfinder documentation.

                So here it seems to be:
                http://wiki.modxcms.com/index.php/Wayfinder200

                Hope some new ModX user (like me) will find this link usefull.

                Regards,

                I appreciate all the work everybody is doing on this ModX project and Wayfinder... :-D

                  Michiel /.nl
                  • 22427
                  • 793 Posts
                  For beginners the following remarks may be helpful to understand Wayfinder placeholders.

                  If you don’t have defined your own template &outerTpl, WF will use this one as default:

                  <ul [+wf.classes+]>[+wf.wrapper+]</ul>

                  Question: How WF does know which classes to insert for the placeholder [+wf.classes+] ?

                  Answer: All about classes is found in the CSS-definitions (which preferably are written in own css-files).
                  So WF will look for a style definition for an unordered list <ul>, and f.i. will find the following:

                  ul.mymenu
                  {
                  ....
                  }

                  The WF call then creates this output:

                  <ul class="mymenu"> .... </ul>

                  But what happens if I’ve got several different ul-classes in my CSS, f.i.

                  ul.firstclass
                  {
                  ....
                  }
                  ul.secondclass
                  {
                  ....
                  }

                  - and it’s the second one (f.i.) which refers to the menu WF should create?

                  Just for that there exists the parameter &outerClass (It can be omitted if there is no ambiguity). In our example the WF-call must contain &outerClass=`secondclass` - and that’s enough for WF to know that he has to build the menu using the styles of ul.secondclass and not of any other ul.

                  In the template &rowTpl (be it the default one or your own) we again have the placeholder [+wf.classes+], f.i.

                  <li [+wf.classes+] ><a href= ....>[+wf.linktext+]</a>[+wf.wrapper+]</li>

                  From where WF will fetch the class(es) to insert here?

                  A style definition for a list element <li> must exist, and it has to be a child of the adequate <ul>. So in the css file you have to write the following (observe the blank - no comma!):

                  ul.secondclass li.myrow
                  {
                  ....
                  }

                  Consequently, for each list item WF will create this output:

                  <li class="myrow" ><a href= ....> .... </a> .... </li>

                  WF knows from the parameter &outerClass that the <li> lies in an <ul> of class "secondclass" and therefore takes the class "myrow" for it, even if there may exist other style definitions for <li> elsewhere in the CSS.

                  (There exist some special parameters allowing an extra styling for the first, last and actual row: &firstClass, &lastClass and &selfClass or &hereClass; see the documentation for details.)

                  What you have learned here:

                  Wayfinder relies on well-built CSS. So before you try to transform an existing Website in a MODx version you should have made a strict and tidy separation of the semantic structure (HTML)) from the layout (CSS) in your website. Doing this you already learn a lot. Later on you will see how straight the conversion into a MODx website is.
                    • 18825
                    • 6 Posts
                    i have the menu displayed fine ....
                    but the problem is as follows ..
                    i have the "about Us" parent that contains sub-menus ..."Company" and "Investors" ...I want the About Us unclickable ...and i want the submenus to b displayed as i hover my pointer over "About Us.." plz help ..M a rookie to MODX !!
                      • 23419
                      • 9 Posts
                      Quote from: ottogal at Nov 18, 2008, 03:13 AM

                      For beginners the following remarks may be helpful to understand Wayfinder placeholders.

                      If you don’t have defined your own template &outerTpl, WF will use this one as default:

                      <ul [+wf.classes+]>[+wf.wrapper+]</ul>

                      Question: How WF does know which classes to insert for the placeholder [+wf.classes+] ?

                      Answer: All about classes is found in the CSS-definitions (which preferably are written in own css-files).
                      So WF will look for a style definition for an unordered list <ul>, and f.i. will find the following:.........

                      This is really helpful ottogal many thanks! grin

                      I would like to add for noobs such as my self to check the spacing, I no it’s a dumb mistake but it’s something so subtle its worth checking! Well it was for me anyway. May help someone at some point.

                      [!Wayfinder?startId=`0` &amp;level=`1` &hereClass= `youarehere`!] - Won’t work
                      [!Wayfinder?startId=`0` &amp;level=`1` &hereClass=`youarehere`!] - Will work