Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterator #53

Open
exside opened this issue Nov 20, 2012 · 4 comments
Open

Iterator #53

exside opened this issue Nov 20, 2012 · 4 comments

Comments

@exside
Copy link

exside commented Nov 20, 2012

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

@bwente
Copy link

bwente commented May 13, 2014

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
Copy link

bwente commented May 16, 2014

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

@jakub-gawryl
Copy link

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
Copy link

Just did it again...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants