Go Back To List
The go-back-to-list
block allows the user to return to the list.
Configuration
- Import the
vtex.list
app to your theme's peer dependencies in themanifest.json
file as in the following example:
"peerDependencies": {
"vtex.list": "3.x"
}
- Add the
go-back-to-list
block to other theme block inside a search context, such as thestore.search
. For example:
"search-result-layout.desktop":{
"children": [
flex-layout.row
]
},
"flex-layout.row": {
"children": [
"flex-layout.col#searchinfo",
"flex-layout.col#search-product",
+ "go-back-to-list",
]
}