Choose how collection items open
set_collection_item_displayChoose how a visitor opens ONE item of a collection when they click it in a list or grid: "page" (its own full page — the default) or "modal" (a quick-view pop-up over the list, with photo, description, price, add to cart and a link to the full page). Works for any collection. Each item keeps its own page either way, so links and search are unaffected. The response carries tradeoffs — relay them to the owner. The preview shows the change at once; the live site updates on the next publish_site. list_collections reports each collection's current item_display.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site the collection belongs to | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| item_display | Yes | "page" = own page, "modal" = quick-view pop-up. | |
| collection_type | Yes | The collection's slug, as list_collections returns it (e.g. "blog", "menu", "products", "faqs"). |