We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8790
    • 526 Posts
    Hi,

    Is the doc link_attributes still working in Evo and remaining compatible with Wayfinder ?

    Because doing an attept to add some accesskey into WF menu does not give anything.
    <li class="[+wf.classnames+]"><a href="[+wf.link+]" [+wf.attributes+]  title="vers page [+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>

    I setup some link_attributes for a few pages in their specific field (not a custom TV)

    So I added a test output
    <li class="[+wf.classnames+]"><a href="[+wf.link+]" [+wf.attributes+]  title="vers page [+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+] <span>[+link_attributes+]</span></li>


    and the [+link_attributes+] is not here (nothing!)



    any clues?

      Schtroumpf Grognon - Grouchy Smurf
      ---------------------------------
      Faites pas attention.. - Don&#39;t pay attention
      http://www.dzi-neo.net
    • Works for me.
      <ul><li class="active"><a href="http://localhost/evo5-testing/" title="vers page Home">Home</a> <span></span></li>
      <li class=""><a href="/evo5-testing/index.php?id=2" target="_blank" title="vers page Example One">Example 1</a> <span></span></li>
      <li class=""><a href="/evo5-testing/index.php?id=3" target="_blank" title="vers page Example Two">Example 2</a> <span></span></li>
      <li class="last"><a href="/evo5-testing/index.php?id=4" target="_blank" title="vers page Example Three">Example 3</a> <span></span></li>
      </ul>
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 8790
        • 526 Posts
        Hi,

        well well well. This is not a matter to make me feel better.
        So what could be wrong on my setup..

        WF is 2.0.1
        Putting directly the tv [*link_attributes*] into any template does output trhe value (for the concerned pages) .
        In phpmyadmin I actually see the value I added in the link_attributes field and
          Schtroumpf Grognon - Grouchy Smurf
          ---------------------------------
          Faites pas attention.. - Don&#39;t pay attention
          http://www.dzi-neo.net
        • Ah, I think we’re talking about two different things here. I was looking at [+wf.attributes+], not [+link_attributes+]. I’m not familiar with that placeholder, nor do I find it anywhere in WF documentation huh

          The [+wf.attributes+] placeholder is where, in the output menu, Wayfinder will insert the link
          attributes of the document. Link attributes include rel="alternate"; target="_blank", etc. Please
          note that the "target" attribute is deprecated in strict XHTML 1.0 and is only shown here as an
          example.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 8790
            • 526 Posts
            Yes I’m talking about both of them.

            Purpose is to make the wf one working.

            I’ve just tried to work around with the modx astandard tv to test if it was actually implemented!
              Schtroumpf Grognon - Grouchy Smurf
              ---------------------------------
              Faites pas attention.. - Don&#39;t pay attention
              http://www.dzi-neo.net
            • link_attributes is the name of the database field. [+wf.attributes+] is the placeholder that Wayfinder makes from that field.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 8790
                • 526 Posts
                Yes I know all of this.. May be m’y english is not that good, I’m sorry .

                The issue is the WF place holder for link attributes does not outputs anything
                  Schtroumpf Grognon - Grouchy Smurf
                  ---------------------------------
                  Faites pas attention.. - Don&#39;t pay attention
                  http://www.dzi-neo.net
                  • 15001
                  • 697 Posts
                  I confirm that [+wf.attributes+] works and outputs the content of the "Link attributes" field.
                  It works with links as well as with document ressources.
                  Tested with MODx 1.0.15, but I'm a user of MODx since the 0.9.6 version, and I think it should also work with versions prior the 1.0.15.