Hi guys, been trying to make use of the listindex as outlined above to apply alternate styling but it doesn't seem to be working as I planned.
The listindex numbers *seem* erratic but i'm assuming it's to do with the way lists are constructed.
Im calling a list of all products then using a blockif to show only those products that have a variable == true.
This shows the intended products however the list indexes aren't 1, 2, 3, 4 etc they are 6, 19, 20 and 22 in one of my lists.
I'm assuming this is because the listindexes are assigned when the full list is called, then my custom variable block is picking the 6th, 19th, 20th and 22nd products. Is there a way of making it reindex the list or even a better way altogether?
I know I could use some php to make my own counter (which im quite capable of) but i'd rather keep to using actinic variables and functions where possible.
As an aside though, what are the implications of using php in actinic? I understand that the phpblocks are not handled server side they are parsed and uploaded as flat files and parsing php from the cgi-bin can be troublesome but are there any other things I should take into consideration?
Cheers, Rob
The listindex numbers *seem* erratic but i'm assuming it's to do with the way lists are constructed.
Im calling a list of all products then using a blockif to show only those products that have a variable == true.
This shows the intended products however the list indexes aren't 1, 2, 3, 4 etc they are 6, 19, 20 and 22 in one of my lists.
I'm assuming this is because the listindexes are assigned when the full list is called, then my custom variable block is picking the 6th, 19th, 20th and 22nd products. Is there a way of making it reindex the list or even a better way altogether?
I know I could use some php to make my own counter (which im quite capable of) but i'd rather keep to using actinic variables and functions where possible.
As an aside though, what are the implications of using php in actinic? I understand that the phpblocks are not handled server side they are parsed and uploaded as flat files and parsing php from the cgi-bin can be troublesome but are there any other things I should take into consideration?
Cheers, Rob
Comment