Hi,
I'm trying to alter the layout of the results our search page generates. We have 4 columns and I need the 4th column to have a different class to the other three.
Within my Standard Search Results List there is no editing of the lists layout as there is with all the other lists on our site. I assume this is in some part due to the dynamic nature of the results. If this isn't the case and i can add this in please stop me here and let me know how.
As i have assumed I need to build this layout myself I have added a php block to the Standard Search Results which I want to perform a modulus test against the SearchResultItem variable. If it is divisble by 4 I know it's the final column and I can pop in the different class.
What i have is therefore:
However I am getting a PHP Parse error which occurs whenever i place any of the Search Result variables within the PHP block.
Can anyone advise on where I am going wrong.
Kind Reagrds,
Guy
Lock Shop Warehouse
Dedicated to offering a huge range of discounted locks, padlocks & safes
I'm trying to alter the layout of the results our search page generates. We have 4 columns and I need the 4th column to have a different class to the other three.
Within my Standard Search Results List there is no editing of the lists layout as there is with all the other lists on our site. I assume this is in some part due to the dynamic nature of the results. If this isn't the case and i can add this in please stop me here and let me know how.
As i have assumed I need to build this layout myself I have added a php block to the Standard Search Results which I want to perform a modulus test against the SearchResultItem variable. If it is divisble by 4 I know it's the final column and I can pop in the different class.
What i have is therefore:
Code:
<actinic:block php="true"> if (<actinic:variable name="SearchResultItem" /> % 4 === 0) { echo "<div class=\"sectionProduct section right\">"; } else { echo "<div class=\"sectionProduct section left\">"; } </actinic:block>
Can anyone advise on where I am going wrong.
Kind Reagrds,
Guy
Lock Shop Warehouse
Dedicated to offering a huge range of discounted locks, padlocks & safes
Comment