categories's images at 'catalog/filter'

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!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

categories's images at 'catalog/filter'

Post by Travin » 29 Dec 2017, 19:49

Hi
I want to use categories's images at 'catalog/filter'. I see the code at client\html\templates\catalog\filter\tree-default.php:

Code: Select all

<div class="media-list"><!--
                        
						<?php foreach( $item->getListItems( 'media', 'icon' ) as $listItem ) : ?>
							<?php if( ( $mediaItem = $listItem->getRefItem() ) !== null ) : ?>
								<?= '-->' . $this->partial(
									$this->config( 'client/html/common/partials/media', 'common/partials/media-default.php' ),
									array( 'item' => $mediaItem, 'boxAttributes' => array( 'class' => 'media-item' ) )
								) . '<!--'; ?>
							<?php endif; ?>
						<?php endforeach; ?>

					--></div>
I think it should render me some images but it does not. There are no one $listItem at "foreach" block.
I think it depends on some aimeos settings but i did not find anything at the documentation. :)
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: categories's images at 'catalog/filter'

Post by aimeos » 30 Dec 2017, 14:27

Maybe it's only the list type that's not 'icon'. In 2017.10, you can't change the list type in the JQAdm interface. That will be possible in 2018.01 and is possible in your version in the expert mode interface.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply