title: Modx Revo Wayfinder: Add extra attribute to list item of current menu
body: <p>Ref: Wayfinder on Modx Revo</p>
  
  <p>I've been searching extensively and couldn't find the answer.</p>
  
  <p>I find a very tricky situation trying to output an extra attribute with the list item that wraps the current menu (the menu link on of the page you're currently in). 
  For example:
  Instead of just this line..</p>
  
  <pre><code>&lt;li class="current"&gt;&lt;a href="#"&gt;This is the menu&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I want..</p>
  
  <pre><code>&lt;li class="current" value="1"&gt;&lt;a href="#"&gt;This is the menu&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>see <strong>value="1"</strong></p>
  
  <p>I tried creating a chunk in relation with the &amp;hereTpl parameter but apparently this parameter is no longer valid in Wayfinder Revo (or is it?).</p>
  
  <p>I think another possible route is if there's a way for a conditional inside the &amp;rowTpl to render the needed attribute only for the current menu but again another brick wall.</p>
  
  <p>I also tried the [[+wf.attributes]] (on the list item tag in the template chunk and put the needed attribute in the Link attributes of all the the resources/documents assuming it's going to render only when the resource/document is "current" but then the attribute is just outputted to all the menu items.</p>
  
  <p>Could you share a thought? thanks so much for any help.</p>