Skip to content

Instantly share code, notes, and snippets.

@emersonlaurentino
Created February 11, 2026 14:54
Show Gist options
  • Select an option

  • Save emersonlaurentino/992fa9834886c98020078a37f525fce2 to your computer and use it in GitHub Desktop.

Select an option

Save emersonlaurentino/992fa9834886c98020078a37f525fce2 to your computer and use it in GitHub Desktop.
Page Schema
{
"tree": ["h_01", "shelf_01", "f_01"],
"dataSources": {
"search_01": { "handler": "vtex:product-search", "collection": "144" }
},
"components": {
"h_01": { "type": "Header", "props": { "logo": "vtex.png" } },
"shelf_01": {
"type": "ProductShelf",
"props": { "title": "Ofertas", "data": "$dataSources.search_01" }
},
"f_01": { "type": "Footer" }
}
}
{
"type": "Page",
"content": {
"type": "Container",
"children": [
{ "type": "Header", "props": { "logo": "vtex.png" } },
{
"type": "ProductShelf",
"props": { "title": "Ofertas" },
"dataSource": { "type": "vtex:product-search", "args": { "collection": "144" } }
},
{ "type": "Footer" }
]
}
}
{"id": "meta", "page": "home", "theme": "vtex"}
{"id": "comp_1", "type": "Header", "props": {"logo": "vtex.png"}}
{"id": "comp_2", "type": "ProductShelf", "props": {"title": "Ofertas"}, "source": "search_01"}
{"id": "comp_3", "type": "Footer"}
{"id": "search_01", "handler": "vtex:product-search", "args": {"collection": "144"}}
page: home
theme: vtex
datasource search_01:
handler: vtex:product-search
collection: 144
component Header:
logo: vtex.png
component ProductShelf:
title: Ofertas
items: @search_01
component Footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment