hi everybody,
i'm new to php, css, modx and wayfinder... but i need to port in modx an existing website.
i was able to do the most, but there is one thing that my brain refuses to understand, so i'm here for some help.
the original webpage is something like this
<body id="mybody" class="category3">
some stuff
<div id="mymenu">
<ul>
<li id="category1"><a href="link1" title="Title1" >Title1</a></li>
<li id="category2"><a href="link2" title="Title2" >Title2</a></li>
<li id="category3" class="active"><a href="link3" title="Title3" >Title3</a></li>
<li id="category4"><a href="link4" title="Title4" >Title4</a></li>
</ul>
</div>
some other stuff
</body>
what i can't understand is how to put the active class name in the <body> tag...
i managed to replace the rest with this template
<body id="mybody">
some stuff
<div id="mymenu">
[[Wayfinder? &config=`ultimate_drop.css` &startId=`0`]]
</div>
some other stuff
</body>
and this chunk
<li [[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
thanx in advance for any help
airone
[ed. note: airone12 last edited this post 10 years, 11 months ago.]