Display catalog/filter/tree in <aside> for product listing page

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kdim95
Advanced
Posts: 206
Joined: 26 Aug 2022, 12:17

Display catalog/filter/tree in <aside> for product listing page

Post by kdim95 » 16 Nov 2022, 08:05

Laravel framework version: 9.40.0
Aimeos Laravel version: * 2022.07.2
PHP Version: 8.1.12
Environment: Linux

Hello,

I need to include the catalog/filter/tree in the <aside> section in the product listing.

I have determined that it should be visible judging by this template file:
/templates/client/html/catalog/filter/body.php

There is $this->block()->get( 'catalog/filter/tree' ) inside the file, but it's not displayed.

What am I missing here?

kdim95
Advanced
Posts: 206
Joined: 26 Aug 2022, 12:17

Re: Display catalog/filter/tree in <aside> for product listing page

Post by kdim95 » 17 Nov 2022, 12:26

I found what I had to change.

I had to add this config in my config/shop.php

Code: Select all

'client' => [
	'html' => [
		'catalog' => [
			'filter' => [
				'subparts' => ['tree', 'search', 'price', 'supplier', 'attribute']
			]
		]
	]
]
By default the 'tree' subpart is commented in ai-client-html/config/client.php

Post Reply