Using 8.5.1.HIZA. Probably affects all other V8+ versions.
I've noticed that when a List is being generated the code in Start of List, the List items themselves and the code in End of List are not being processed in the expected sequence.
I'd expect
Start of List
List Items
End of List
However what actually happens seems to be in this sequence
List Items HTML generated to a buffer
Start of List HTML generated to a buffer
End of List HTML generated to a buffer
Then the Start, List and End lumps of HTML are concatenated to make a single big lump of HTML which is used on the page.
The result is that the HTML appears as you'd expect but there are undesirable side effects.
Extremely strange things happen if you want to use PHP in your code. It seems natural to initialise a variable in Start of List and expect it to be available within the List and the final value to be available in End of List. That doesn't happen due to the out-of-order parsing mentioned above.
I've tested this on Product Lists and Section Lists and get the same bizarre behaviour on both.
I've noticed that when a List is being generated the code in Start of List, the List items themselves and the code in End of List are not being processed in the expected sequence.
I'd expect
Start of List
List Items
End of List
However what actually happens seems to be in this sequence
List Items HTML generated to a buffer
Start of List HTML generated to a buffer
End of List HTML generated to a buffer
Then the Start, List and End lumps of HTML are concatenated to make a single big lump of HTML which is used on the page.
The result is that the HTML appears as you'd expect but there are undesirable side effects.
Extremely strange things happen if you want to use PHP in your code. It seems natural to initialise a variable in Start of List and expect it to be available within the List and the final value to be available in End of List. That doesn't happen due to the out-of-order parsing mentioned above.
I've tested this on Product Lists and Section Lists and get the same bizarre behaviour on both.
Comment