This article explains how to hide catalog items from the SpacesFlex Item List.
The 'attributesDisplaySettings' block is configured in the SpacesFlex partnership dashboard and links attributes to the item types on which they should appear.
Item types are listed under 'baseItemTypes', and the required attributes are referenced via 'attributesRefCode'.
When 'item_list_visibility' attribute is included there, the attribute becomes visible for those item types.
Follow the following steps to manage this attribute in Content Studio.
-
Create an attribute named 'item_list_visibility' and set its data type to Boolean.
For details on creating attributes, see this article.
-
Assign the attribute to each item
On the item’s Attributes tab, click + and add 'item_list_visibility' attribute.
Please note, that the value of true means the item is visible in the Item List. And a value of false hides the item.
-
Change the attribute value
To hide an item, switch the attribute value to false:
- Either by clearing the “Default value” checkbox
- or by editing the attribute in the item’s JSON view and setting 'value': false.
Once the attribute is set to false, the item no longer appears in the Item List. Switching the attribute value back to true makes the item visible again.