Bug seen on 8.5.1.HIZA and 8.5.2.HMVA using Demo site.
ListCount variable is erratic within Product Lists.
If I add the following to a Product List layout (e.g. Product List With Horizontal Dividers).
ListIndex: <actinic:variable name="ListIndex" />, ListCount: <actinic:variable name="ListCount" />
And look in the Books section (3 products).
I'd expect a display like
ListIndex: 1, ListCount: 3
<product 1 details>
ListIndex: 2, ListCount: 3
<product 2 details>
ListIndex: 3, ListCount: 3
<product 3 details>
But I get
ListIndex: 1, ListCount: 2
<product 1 details>
ListIndex: 2, ListCount: 2
<product 2 details>
ListIndex: 3, ListCount: 2
<product 3 details>
Or even
ListIndex: 1, ListCount: 0
<product 1 details>
ListIndex: 2, ListCount: 0
<product 2 details>
ListIndex: 3, ListCount: 0
<product 3 details>
On the same Section, depending on what else I've been doing!
Try it by adding the bit of code above. Then switch to the Content tab and click on any of the Sections. The Page Preview display will probably show a ListCount that isn't correct (it should match the number of items shown). Try clicking on the New Products (empty) section and then on the Stationery (3 Products). Bet you get a ListCount of 0.
What seems to be happening is that ListCount is being taken from the previous Section that was selected.
This is sometimes OK on full Previews and Uploads but I have seen many cases where the wrong value was used.
I've attached 2 screenshots that show the same Section with two different (and wrong) ListCounts showing. All I did was click elsewhere in the Content Tree then return to the same Section.
ListCount variable is erratic within Product Lists.
If I add the following to a Product List layout (e.g. Product List With Horizontal Dividers).
ListIndex: <actinic:variable name="ListIndex" />, ListCount: <actinic:variable name="ListCount" />
And look in the Books section (3 products).
I'd expect a display like
ListIndex: 1, ListCount: 3
<product 1 details>
ListIndex: 2, ListCount: 3
<product 2 details>
ListIndex: 3, ListCount: 3
<product 3 details>
But I get
ListIndex: 1, ListCount: 2
<product 1 details>
ListIndex: 2, ListCount: 2
<product 2 details>
ListIndex: 3, ListCount: 2
<product 3 details>
Or even
ListIndex: 1, ListCount: 0
<product 1 details>
ListIndex: 2, ListCount: 0
<product 2 details>
ListIndex: 3, ListCount: 0
<product 3 details>
On the same Section, depending on what else I've been doing!
Try it by adding the bit of code above. Then switch to the Content tab and click on any of the Sections. The Page Preview display will probably show a ListCount that isn't correct (it should match the number of items shown). Try clicking on the New Products (empty) section and then on the Stationery (3 Products). Bet you get a ListCount of 0.
What seems to be happening is that ListCount is being taken from the previous Section that was selected.
This is sometimes OK on full Previews and Uploads but I have seen many cases where the wrong value was used.
I've attached 2 screenshots that show the same Section with two different (and wrong) ListCounts showing. All I did was click elsewhere in the Content Tree then return to the same Section.
Comment