We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20765
    • 90 Posts
    myfriendscallmebill Reply #31, 19 years, 7 months ago
    Here’s a newer version of the Wayfinder documentation file I’m developing.

    While waiting for Kyle’s comments (it’s a lot to slog through isn’t it ;-) I’ve made some corrections and added what I hope is correct information about how to use config files.

    @sottwell: Hi Susan smiley. I thought I’d try to get all the info gathered and corrected before trying to figure out how best to add it to the wiki.
      • 16732
      • 592 Posts
      Hi,
      It will be great if It will be possible to have just the &rowIdPrefix string in [+wf.id+] (or just the docid in an other ph) and not the id="" .

      I’m saying that, because I’m facing this problem to use the code below with WF (use js to display or not the ul parts):

      <dl class="liste_dossiers">
        <dt id="doss_01" onclick="listingdossiers('01');">Avant les travaux</dt>
        <dd>
          <ul id="ssdoss_01" style="display:none;">
            <li><a href="dossiers_fiche.php">> Les produits dangereux et nuisibles</a></li>
            <li><a href="#">> Panorama des prêts existants</a></li>
            <li><a href="#">> Les critères de choix d'un prêt</a></li>
          </ul>
        </dd>
        <dt id="doss_02" onclick="listingdossiers('02');">Pendant les travaux</dt>
        <dd>
          <ul id="ssdoss_02" style="display:none;">
            <li><a href="#">> Les produits dangereux et nuisibles</a></li>
            <li><a href="#">> Panorama des prêts existants</a></li>
            <li><a href="#">> Les critères de choix d'un prêt</a></li>
          </ul>
        </dd>
      </dl>
      


      If I can use something like that in WF with just the string value, my problem is solved grin

        <dt id="doss_[+wf.id+]" onclick="listingdossiers('[+wf.id+]');">Avant les travaux</dt>
        <dd>
          <ul id="ssdoss_[+wf.id+]" style="display:none;">
                [+wf.wrapper+] 
          </ul>
        </dd>
      
      
        • 15987
        • 786 Posts
        try the placeholder [+wf.docid+]
          • 11975
          • 2,542 Posts
          Hi kylej,

          According my understanding of Laurent issue the best would be to have a [+parentid+] placeholder

          <dt id="doss_02" onclick="listingdossiers(’02’);">Pendant les travaux</dt>
            <dd>
              <ul id="ssdoss_02" style="display:none;">

          that way
          <dt id="doss_[+docid+]" onclick="listingdossiers(’[+docid+]’);">Pendant les travaux</dt>
            <dd>
              <ul id="ssdoss_[+parentid+]" style="display:none;">

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 27376
            • 576 Posts
            I’ve been using this version for a couple days in 0.9.6 RC 2 and haven’t had any problems smiley

            My scenario is one Wayfinder call for the top level menus and then another call inside a TV with [[UltimateParent]] as the start ID. My snippet calls are quite simple, so I’m not the best candidate for doing some extreme testing, WF2 RC 2 is working fine!

            Great job!

            UPDATE: I’ve found an issue :-/ It involves the &hideSubMenus parameter. My site tree structure is in the attachment. Here’s the issue: I have two snippet calls on the Departments page (id 6) - one lists all the departments (Programs folder set to not show up in menu), the other lists all the programs (id 103). The snippet calls look like this:
            <h2>Departments</h2>
            [[Wayfinder? &startId=`6` &hideSubMenus=`true`]]
            <h2>Programs</h2>
            [[Wayfinder? &startId=`103` &hideSubMenus=`true`]]
            

            The problem occurs with the second snippet call, it returns nothing. If I remove the &hideSubMenus parameter, it shows the correct menu.

            Any advice? This snippet call worked fine in the previous version of Wayfinder.
              • 16732
              • 592 Posts
              Quote from: kylej at Mar 02, 2007, 07:25 AM

              try the placeholder [+wf.docid+]

              @kylej : yes thanks... it is working now, I don’t know how I missed this one embarrassed

              @Helio: my problem was, in fact, more simple that the case you mention: wink ... but it wasn’t my day undecided, anyway thanks for the time you spent on my question smiley
                • 15987
                • 786 Posts
                sirlancelot,
                I will look into that, however since the docs under programs have no children you don’t need to set that parameter to true. But I will look into the code and see if I can find the problem, it should still output the first level of links under that folder.
                  • 11975
                  • 2,542 Posts
                  Quote from: laurentc at Mar 02, 2007, 12:19 PM

                  Quote from: kylej at Mar 02, 2007, 07:25 AM

                  try the placeholder [+wf.docid+]

                  @kylej : yes thanks... it is working now, I don’t know how I missed this one embarrassed

                  @Helio: my problem was, in fact, more simple that the case you mention: wink ... but it wasn’t my day undecided, anyway thanks for the time you spent on my question smiley

                  My bad smiley

                  I haven’t read carefully the html code

                  :-)
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 27376
                    • 576 Posts
                    Quote from: kylej at Mar 02, 2007, 12:35 PM

                    I will look into that, however since the docs under programs have no children you don’t need to set that parameter to true.
                    I’ve set the hideSubMenus parameter for future-proofing purposes, seeing as each department as an editor (not me), the editor may choose to add a child page and if that’s the case, I don’t want it showing up until a visitor clicks on the department/program.

                    For now though, I’ve disabled that functionality until it can be fixed. I haven’t looked through your source code enough to offer a suggestion though :-/ sorry...
                      • 15987
                      • 786 Posts
                      sirlancelot,

                      try replacing line 65 of wayfinder.inc.php with this:

                      if (!$this->_config['hideSubMenus'] || $this->isHere($parentId) || $level <= 1) {
                      


                      I haven’t tested this but I think it should work.