@bettercms-ai/kit 3.1.25 → 3.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1282,7 +1282,7 @@ var ENTRIES = [
|
|
|
1282
1282
|
name: "product",
|
|
1283
1283
|
title: "Product",
|
|
1284
1284
|
type: "reference",
|
|
1285
|
-
reference: { to: ["
|
|
1285
|
+
reference: { to: ["col_products"] }
|
|
1286
1286
|
}]
|
|
1287
1287
|
},
|
|
1288
1288
|
{
|
|
@@ -1593,7 +1593,7 @@ var ENTRIES = [
|
|
|
1593
1593
|
arrow: true
|
|
1594
1594
|
},
|
|
1595
1595
|
source: "external",
|
|
1596
|
-
products: ["
|
|
1596
|
+
products: ["en_p3", "en_p4"],
|
|
1597
1597
|
query: {
|
|
1598
1598
|
tags: ["camp", "cast-iron"],
|
|
1599
1599
|
price: "under",
|
|
@@ -1624,7 +1624,7 @@ var ENTRIES = [
|
|
|
1624
1624
|
"'You might also like' / 'Goes well with' headings with a product carousel",
|
|
1625
1625
|
"Server-rendered lists with sort/filter query params in the 'View all' link"
|
|
1626
1626
|
],
|
|
1627
|
-
mcp: "Decide the source from how the products got there, not how they look: hard-coded product links → manual (resolve each to
|
|
1627
|
+
mcp: "Decide the source from how the products got there, not how they look: hard-coded product links → manual (resolve each to its entry in the Products collection); a collection URL or data-handle → collection; filter params (tag, price, sort) → query; a call to a recommendations endpoint → external. Fill only the active branch; leave others empty. Map the 'View all' link to cta. When the HTML is a snapshot of a dynamic list, NEVER freeze it into a manual list — that silently stops it updating; flag it if you can't tell.",
|
|
1628
1628
|
pitfalls: [
|
|
1629
1629
|
"SCHEMA GAP: conditions test one sibling for equality — no AND/OR, no comparison (>), no reading a parent or the whole entry (e.g. 'show seed only when this block is on a product page'). Nested objects are a workaround, not a model.",
|
|
1630
1630
|
"SCHEMA GAP: values in hidden branches are kept and published; there's no 'clear when hidden' option, so stale manual product ids ship in the payload of an external-source block.",
|