Bildergalerie mit 1 Thumbnail
Closed this issue · 2 comments
lenaSo21 commented
Ist es möglich einen ganzen Ordner auswählen zu können - und das nur 1 Thumbnail angezeigt wird und auf Klick in der Lightbox alle Fotos vom Ordner ausgegeben werden.
Momentan hab ich ein Foto (das sich in der Lightbox öffnet) mit einem Text darunter.
Mein momentaner code:
rsce_galerie.html5:
<?php foreach ($this->members as $member): ?>
<div class="col-xl-3 col-lg-6 col-md-6">
<?php if ($image = $this->arrData['getImageObject']($member->image)): ?>
<a data-lightbox="<?php echo $this->id ?>" href="<?php echo $image->singleSRC ?>">
<img src="<?php echo $image->src ?>" alt="<?php echo $image->alt ?: $member->name ?>"<?php echo $image->imgSize ?>>
</a>
<?php endif ?>
<p style="font-weight:bold;"><?php echo $member->text ?></p>
</div>
<?php endforeach ?>
rsce_galerie_config.php:
<?php
return array(
'label' => array(
'de' => array(
'Galerie',
),
),
'types' => array('content'),
'contentCategory' => 'texts',
'standardFields' => array('headline', 'cssID'),
'fields' => array(
'members' => array(
'label' => array(
'de' => array(
'Galerie',
'Fügen Sie eine neue Baustelle ein.',
),
),
'elementLabel' => array(
'de' => 'Baustelle %s',
),
'inputType' => 'list',
'fields' => array(
'image' => array(
'label' => array(
'de' => array('Bild', ''),
),
'inputType' => 'fileTree',
'eval' => array(
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => 'jpg,jpeg,png,gif,svg',
),
),
'text' => array(
'label' => array(
'de' => array('Text', ''),
),
'inputType' => 'text',
'eval' => array('tl_class' => 'w200'),
),
),
),
),
);
ausi commented
Zu diesem Thema gibt es bereits einen Beitrag im Contao-Community-Forum: https://community.contao.org/de/showthread.php?81360
lenaSo21 commented
Den habe ich erstellt - aber keiner hilft mir ;(
… Am 03.08.2021 um 15:19 schrieb Martin Auswöger ***@***.***>:
Zu diesem Thema gibt es bereits einen Beitrag im Contao-Community-Forum: https://community.contao.org/de/showthread.php?81360 <https://community.contao.org/de/showthread.php?81360>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#139 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AVBX3F6RMF63J27RMFIHA3TT27UFTANCNFSM5BOTOMYA>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.