We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26575
    • 57 Posts
    christianseel Reply #51, 17 years ago
    Quote from: MadeMyDay at Sep 03, 2009, 05:01 AM

    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`+]

    output is:
    <ul id="Navigation" >test
    test
    test
    test
    test
    test
    test
    test
    test
    test
    test
    </ul>
    
      christian seel - www.christianseel.com
      web developer & designer at chsmedien.de
      twitter: @christianseel / @chsmedien
      • 17883
      • 1,039 Posts
      hmmm, just for debugging:


      [+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=`[+navigationexclude+]`+]
        • 26575
        • 57 Posts
        christianseel Reply #53, 17 years ago
        huh *confused*

        with this call, every item with navigationexclude=0 is correctly displayed.
        all other items with navigationexclude=1 display the else-string "1"

        when i change the else in the phx call into something else like "elsetext", same problem as before.


        output with call from MadeMyDay:
        <ul id="Navigation" >
        <li  class="aktiv"><a href="http://www.seel-media.info/Kunden/Centiveo/web/" title="Startseite" >Startseite</a></li>
        <li ><a href="/Kunden/Centiveo/web/unternehmen.html" title="Unternehmen" >Unternehmen</a></li>
        1
        <li ><a href="/Kunden/Centiveo/web/leistungen.html" title="Leistungen" >Leistungen</a></li>
        <li ><a href="/Kunden/Centiveo/web/produktneuheiten.html" title="Produktneuheiten" >Referenzen</a></li>
        <li ><a href="/Kunden/Centiveo/web/kontakt.html" title="Kontakt" >Kontakt</a></li>
        
        1
        1
        1
        1
        1
        </ul>
        
          christian seel - www.christianseel.com
          web developer & designer at chsmedien.de
          twitter: @christianseel / @chsmedien
          • 17883
          • 1,039 Posts
          What happens if you reverse the order:

          [+phx:input=`[+navigationexclude+]`:is=`1`:then=``:else=`<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+navigation_text+]</a>[+wf.wrapper+]</li>`+]
            • 26575
            • 57 Posts
            christianseel Reply #55, 17 years ago
            Quote from: MadeMyDay at Sep 03, 2009, 05:29 AM

            [+phx:input=`[+navigationexclude+]`:is=`1`:then=``:else=`<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+navigation_text+]</a>[+wf.wrapper+]</li>`+]
            -> every item (navigationexclude=0 & 1) is displayed.
            when i put an else to the call, only the else-string is displayed.
              christian seel - www.christianseel.com
              web developer & designer at chsmedien.de
              twitter: @christianseel / @chsmedien
              • 4172
              • 5,888 Posts
              what is, when you try it this way?
              [+navigationexclude:is=`0`:then=`<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+navigation_text+]</a>[+wf.wrapper+]</li>`+]

              or
              [+navigationexclude:isnot=`1`:then=`<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+navigation_text+]</a>[+wf.wrapper+]</li>`+]
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 26575
                • 57 Posts
                christianseel Reply #57, 17 years ago
                Quote from: Bruno17 at Sep 03, 2009, 05:49 AM

                what is, when you try it this way?
                both calls displays nothing. ...only the outerTpl like before.
                  christian seel - www.christianseel.com
                  web developer & designer at chsmedien.de
                  twitter: @christianseel / @chsmedien
                  • 4172
                  • 5,888 Posts
                  Ok, problem is, wayfinder does not find hidden fields, which are nested in chunks or phx and so.

                  Ditto has the parameter &hiddenFields for that.

                  It is easy to add this functionality to wayfinder:

                  in wayfinder.snippet line 95:

                      'ignoreSecurity' => isset($ignoreSecurity) ? $ignoreSecurity : FALSE,
                  	'hiddenFields' =>  isset($hiddenFields) ? explode(',',$hiddenFields) : array()//add by Bruno 


                  in wayfinder.class.php line 764:

                  		//$tvnames = array ();
                  		$tvnames = $this->config['hiddenFields'];//mod by Bruno


                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 26575
                    • 57 Posts
                    christianseel Reply #59, 17 years ago
                    yeah!! (: great! you’re right.
                    hiddenFields should be added to wayfinder!!

                    thanks a lot for all help.
                    chris
                      christian seel - www.christianseel.com
                      web developer & designer at chsmedien.de
                      twitter: @christianseel / @chsmedien
                      • 26575
                      • 57 Posts
                      christianseel Reply #60, 17 years ago
                      well, now i had an error when i use ditto in a document.
                      this is the error when i use wayfinder2.5 before ditto.
                      Fatal error: Cannot redeclare class Wayfinder in /www/htdocs/Kunden/MMM/web/assets/snippets/wayfinder25/Wayfinder.class.php on line 10


                      when ditto stands befor wayfinder in the code, i had this error:
                      Fatal error: Cannot redeclare class prePHx in /www/htdocs/Kunden/MMM/web/assets/snippets/ditto/classes/phx.pre.class.inc.php on line 11

                      the ditto tpl contains no phx-call. whenn i escape the all wayfinder-calls, ditto is working.
                      so there must be a problem with wayfinder+phx and ditto...

                      can anybody help?
                        christian seel - www.christianseel.com
                        web developer & designer at chsmedien.de
                        twitter: @christianseel / @chsmedien