OK, I’ve now created 2 chunks, navigation and wrapper. Do these need to be in a particular category?
There’s still no change on my navigation.
Oooooh progress. Stay tuned.
try this
<ul>
<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li
>[+wf.wrapper+]
</li>
</ul>
I noticed that the closing </ul> was left off, so make sure thats there. I’ve added in my example above.
sorry added an extra </li> that time.
<ul>
<li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li
>
[+wf.wrapper+]
</ul>
Thanks for the reply bennyb.
Only downside to that is it sticks in a ’class="active"’ to the main page, even if I’m on one of the children pages.
I suppose it makes sense, but in my case, it looks a bit off.
Is there any way to disable that, so it only has class="active" when actually on that particular page.
-
☆ A M B ☆
- 3,112 Posts
@invision,
have you read
"The (almost) Complete Guide to Creating Menus in MODx Using Wayfinder" ?
It’s like a Wayfinder bible to us.
Have a quick look, you’ll find out why there are active descendants.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
I’ve downloaded it, but I’ve still to read it.
Being honest, the 148 pages put me off. I’m a poor reader.
I will read through it soon.