Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#5309 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. :)
#5311 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.