[[+content_image]]
A
A
Alex2016-12-09 10:58:41
MODX
Alex, 2016-12-09 10:58:41

How to display the class of a link?

Good afternoon, for some reason, the class is not displayed for menu links. It is Wayfinder that is needed,
&webLinkClass=`icons_fa parent`

[[!Wayfinder? 
&startId=`2` 
&outerTpl=`@INLINE <ul[[+wf.classes]]>[[+wf.wrapper]]</ul>` 
&rowTpl=`@INLINE <li[[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>` 
&level=`2`
&webLinkClass=`icons_fa parent`
&rowClass=`full has-child m_line`
&hereClass=`current`

&outerClass=`menu dropdown`
]]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alex, 2016-12-15
@astrodeep

Thank you all for your advice, the error was that @INLINE is not needed, but @CODE

S
sanch0ss, 2016-12-15
@sanch0ss

and in this way?

[[!Wayfinder? 
...
&rowTpl=`@INLINE <li сlass="icons_fa parent"><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>` 
...
]]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question