Wayfinder icon indicating copy to clipboard operation
Wayfinder copied to clipboard

Iterator

Open exside opened this issue 12 years ago • 4 comments

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^^

exside avatar Nov 20 '12 02:11 exside

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.

bwente avatar May 13 '14 15:05 bwente

Would it make sense to have a rowcount and an itemcount?

bwente avatar May 16 '14 18:05 bwente

5 years and i still need make dirty wayfinder.class.php hacks to just work that simple iterator. My solution:

  1. line 238: add $counter as 3rd parameter to $this->renderRow call,
  2. line 287: add 3rd parameter ($currentCount) to method declaration,
  3. 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).

jakub-gawryl avatar Jan 27 '15 13:01 jakub-gawryl

Just did it again...

jakub-gawryl avatar Jul 10 '15 11:07 jakub-gawryl