Navigations
Usage Instructions
To use the layout configuration file:
- Open the
layout
Folder in a text editor. - Open the
config.json
file. - Customize the
top bar
andappbar
arrays according to your needs. - Save the changes to the file.
Examples
1: Appbar
"menu": [
{
"title": "Home",
"path": "/"
},
{
"title": "Products",
"path": "/products"
},
{
"title": "Men",
"path": "/products?gender=men"
},
{
"title": "Women",
"path": "/products?gender=women"
},
{
"title": "Kids",
"path": "/products?gender=kids"
}
],
2: Mobile Appbar
"mobile_menu": [
{
"name": "Home",
"href": "/"
},
{
"name": "Search",
"href": "/search"
},
{
"name": "Product",
"href": "/products"
},
{
"name": "Cart",
"href": "/cart"
},
{
"name": "User",
"isUser": true,
"href": "/auth/login"
}
],
Troubleshooting
Issue: The menu items are not displaying correctly.
Solution: Ensure that the JSON syntax is correct, and the menu items are properly structured within the arrays.