How to show single level of subcategories with images on home page?
Posted: 26 Mar 2020, 21:56
This is my first Aimeos project. Currently I have the catalog filter tree residing in a menu that slides out from the left side when a menu icon is clicked. This is working fine.
However, on the home page I wish to show only the first level of sub-categories along with their category images and descriptions.
My catalog tree is
HOME
>Bakery
> >Breads
> >Cakes
>Meals
> >Single Serve
> >Family Size
So on the home (HOME Level) page I wish to display just the Bakery and Meals categories (not the products) with their category images and descriptions.(without altering the catalog filter in the slideout menu)
How would I achieve that?
I tried using <?= $aibody['catalog/filter'] ?> but this just duplicated my slideout menu.
from my composer.json:
"require": {
"php": "^7.2",
"aimeos/ai-payments": "^2019.10",
"aimeos/aimeos-laravel": "~2019.10",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.0",
"laravel/tinker": "^1.0",
"laravel/ui": "^1.0",
"league/omnipay": "^3.0",
"omnipay/stripe": "^3.1",
"guzzlehttp/guzzle":">=6.3.0 <6.5.0 || ^6.5.1"
},
However, on the home page I wish to show only the first level of sub-categories along with their category images and descriptions.
My catalog tree is
HOME
>Bakery
> >Breads
> >Cakes
>Meals
> >Single Serve
> >Family Size
So on the home (HOME Level) page I wish to display just the Bakery and Meals categories (not the products) with their category images and descriptions.(without altering the catalog filter in the slideout menu)
How would I achieve that?
I tried using <?= $aibody['catalog/filter'] ?> but this just duplicated my slideout menu.
from my composer.json:
"require": {
"php": "^7.2",
"aimeos/ai-payments": "^2019.10",
"aimeos/aimeos-laravel": "~2019.10",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.0",
"laravel/tinker": "^1.0",
"laravel/ui": "^1.0",
"league/omnipay": "^3.0",
"omnipay/stripe": "^3.1",
"guzzlehttp/guzzle":">=6.3.0 <6.5.0 || ^6.5.1"
},