If you have a layout or variable that you don’t want shown on pages with multiple items, you can enclose it in a simple condition to impose that restriction. This may be useful, for example, for the tables showing Feefo product feedback, which can increase page load times significantly on pages with multiple products. To limit the display to single item pages, find the variable (eg ‘FeefoProductFeedback’) in the Product Layout and wrap it in a condition as follows:
This method can be used for any layout or variable within a section layout or brochure fragment list, or in layouts that lie inside them, including product lists and product and fragment layouts.
NB. This method will prevent the item from showing on pages with more than one product, or more than one fragment, or with both a product and a fragment.
HTML Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22ListCount%22%20%2f%3e%20%3d%3d%201"> <actinic:variable name="FeefoProductFeedback" /> </actinic:block>
NB. This method will prevent the item from showing on pages with more than one product, or more than one fragment, or with both a product and a fragment.