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't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
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>
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't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
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
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.
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't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
link_attributes is the name of the database field. [+wf.attributes+] is the placeholder that Wayfinder makes from that field.
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't pay attention
http://www.dzi-neo.net
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.