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:
_10 "peerDependencies": {_10 "vtex.list": "3.x"_10 }
- Add the
go-back-to-list
block to other theme block inside a search context, such as thestore.search
. For example:
_13 "search-result-layout.desktop":{_13 "children": [_13 flex-layout.row_13 ]_13 },_13_13 "flex-layout.row": {_13 "children": [_13 "flex-layout.col#searchinfo",_13 "flex-layout.col#search-product",_13+ "go-back-to-list",_13 ]_13 }