-
Notifications
You must be signed in to change notification settings - Fork 27
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
RT Ticket #229: loop tag does not honour more=1 for list #33
Comments
Date: Tue May 19 19:48:17 2009 Possible patch attached. Explanation as far as I understand the code:
it will either make $opt->{object} to be "" and it will skip the Not very heavily tested! |
Date: Tue May 19 19:54:50 2009 This fix does not work with 2 [loop] tags with more list on the page. Back to the drawing board. |
Date: Tue May 19 20:08:49 2009 When you have 2 loop tags on 1 page with a more list, they both get the Does this make sense? |
Date: Wed May 20 09:33:16 2009 new patch. current patch will work having 2 loop tags on a page. NOTES:
|
Date: Wed May 20 11:41:16 2009 The attached patch works nicely without the need of a different prefix. It is recommended to use an explicit label, though it should work without (untested). Regards |
Date: Wed May 20 13:20:06 2009 My patch relies of course on the fact that a distinct key is generated for the loop's. Interchange considers the first 100 characters of the body for the generation of the key, which is not configurable. |
Date: Thu May 21 11:39:39 2009 Attached a new patch which has an update for the key generation, other that it is the same as the 229.patch The label is prefixed, which should be unique for each loop ... This allows multiple loop lists on the page, with the only drawback that the other loops are reset to their original value when the links in a more-list of another loop is clicked. This does not work for loop searches for example (second loop does not display a more list), have not tested the other loop possibilities. |
Created: Wed Oct 01 16:11:19 2008
Owner: Stefan Hornburg
Requestors: Phil Smith
Hi All,
[more-list] does not work within the [loop] tag if the data is coming from a list=”……”.
For example :
[loop more=1 ranges=1 list=”1..100” ml=10]
[list]
[loop-code]
[/list]
[more-list]
Results [matches] of [match-count] shown
[more]
[/more-list]
[/loop]
In the above example the more list is displayed, but the links do not work.
As discussed on IRC with Racke, this seems to be a bug in the [loop] tag.
Thanks
Phil.
The text was updated successfully, but these errors were encountered: