slot example

$pages[] = (new LayoutBuilder($ids, 'page-2'))
            ->imageSlider(['media-3', 'media-4'])
            ->imageSlider(['media-4', 'media-5'])
            ->imageGallery(['media-6', 'media-7', 'media-8'])
            ->build();

        // create a product with image slider, and image override         $product = (new ProductBuilder($ids, 'product-1'))
            ->price(100)
            ->layout('page-2')
            ->slot(
                'slot-1',
                [
                    'sliderItems' => [
                        'source' => 'static',
                        'value' => array_map(fn (string $id) => ['mediaId' => $id]array_values($ids->getList(['media-9', 'media-10']))),
                    ],
                    'speed' => ['source' => 'static', 'value' => 300],
                    'autoSlide' => ['source' => 'static', 'value' => false],
                    'minHeight' => ['source' => 'static', 'value' => '300px'],
                    'displayMode' => ['source' => 'static', 'value' => 'standard'],
                    'verticalAlign' => ['source' => 'static', 'value' => null],
                    
Home | Imprint | This part of the site doesn't use cookies.