Wayfinder
Wayfinder copied to clipboard
Iterator
3 years ago, there was a thread in the forums, where Wayfinder Beta 2.5 (for Evo) was discussed. In this version there seemed to be the possibility to have a [[+wf.iterator]]
placeholder, which (in comparison to [[+wf.id]]
or [[+wf.docid]]
) just iteraded over the nav rows continuously. Meaning first nav item is 0, second is 1 and so on...(for me it could also begin with 1...). There seemed to be also other improvements for wayfinder.
My question is now, what's with these improvements, will they ever be incorporated into a future release of wayfinder, especially the iterator feature...?
Here is the link to the forum-thread: http://forums.modx.com/thread/?thread=40283
unfortunately I can't even find an old zip of this beta (does somebody still have it?), so I cannot even try to incorporate (copy =D) this myself^^
This would help me too. I am building a mega-menu using bootstrap and need to be able to end the row after certain number of menus.
Would it make sense to have a rowcount and an itemcount?
5 years and i still need make dirty wayfinder.class.php hacks to just work that simple iterator. My solution:
- line 238: add $counter as 3rd parameter to $this->renderRow call,
- line 287: add 3rd parameter ($currentCount) to method declaration,
- line ~330: add $placeholders['wf.count'] = $currentCount;
It's simple change, but i need to do this always, when i install new Wayfinder add-on (or just update it).
Just did it again...