We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9099
    • 26 Posts
    Is there a way to access TVs in wayfinder chunks?
      • 5282
      • 147 Posts
      yeah, same question, is it possible to use custom template variables within the wayfinder template chunks ??
      thx
        i’m not a native english speaker, sorry if there are any mistakes ! smiley

        Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )
        • 10357
        • 573 Posts
        not sure about TV’s in wayfinder, but ditto sure does. Most menus can be built with ditto .
          • 15987
          • 786 Posts
          At this time there is no support for tvs in wayfinder. If you put a tv in the template it will be used but will only get the value from the page that is being displayed.
            • 2896
            • 70 Posts
            Just an idea ...
            perhaps this workaround I used for an eform also works for Wayfinder?

            I wanted to use a tvemailadres in the call of eform [[eform? &to=`tvemailadres`]] ... This didn’t work. Jivanro (thx!) suggested following workaround:

            create a snippet with code:
            where ’Emailadres’ is my tv
            $to = $modx->documentObject['Emailadres'][1];
            
            $output ="[!eForm? &formid=`contactform` &tpl=`contactform` &to=`".$to."` &report=`contactformreport` &subject=`Vraag via site` &vericode=`1`!]"; 
            
            echo $output;


            And then call the snippet [[nameofsnippet]] in the template which generates the eform correctly with the value of the tvemailadres in &to
              • 15987
              • 786 Posts
              bb2,
              I think this would work as well:

              [!eForm? &formid=`contactform` &tpl=`contactform` &to=`[*emailadres*]` &report=`contactformreport` &subject=`Vraag via site` &vericode=`1`!]
              
                • 2896
                • 70 Posts
                I think that’s what I originally tried ... I believe it didn’t work

                see post
                http://modxcms.com/forums/index.php/topic,11791.msg79807.html#msg79807

                  • 15987
                  • 786 Posts
                  just for an FYI... I have added tv support to wayfinder and will be releasing it later today.
                    • 11975
                    • 2,542 Posts
                    that’s an AWESOME news Kylej

                    Can’t wait to test this new version

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 7923
                      • 4,213 Posts
                      yes, great news!


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."