I’m trying to create a custom template for MODx and I’m running into a snag on the menu creation. (Kudos to MODx for having, so far, the most logical templating system I’ve seen yet on a CMS - great to pick up!)
I’m trying to use Wayfinder to create the menu in a simple, easy to modify by CSS way: nested DIVs. However, every time I think I vanquish all of the cursed UL tags, another one pops up. Here’s my code for it (I know it’s ugly and simplistic, but right now all I care about is using DIV and not UL - then I’ll worry about active pages, etc.):
[tt][[Wayfinder? &startId=`0` &level=`2` &outerTpl=`wfOuter` &innerTpl=`wfParentRow` &parentRowHereTpl=`wfParentRow` &parentRowTpl=`wfParentRow` &activeParentRowTpl=`wfParentRow`&hereTpl=`wfParentRow`]][/tt]
Even though I have so many options set, my latest menu addition still defaults to a UL tag... As other posters have mentioned, Wayfinder is great but could use much better documentation. All to come I’m sure... In the mean-time, could someone point out which settings - exactly - I need to set so that I don’t have any default styles?
Thanks.
-
MODX Staff
- 12,272 Posts
The ULs are contained in the template files, which are likely chunks. Make sure you’re running the latest Wayfinder code, too.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
Ditto will not insert anything that’s not in the template chunks.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
Are you using the latest version of Wayfinder?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
I downloaded Wayfinder 2.0, I think it was, from the web site and installed it Saturday... So I think so.
-
MODX Staff
- 12,272 Posts
Try clearing the cache. If that fails, please PM me a manager login.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thanks, I’ve sent the info. I’m afraid clearing the cache again hasn’t helped. I appreciate the assist!