Hallo.
Wie kann ich einen event reader in der lightbox öffnen lassen?
Danke
Gruß Marco
Hallo.
Wie kann ich einen event reader in der lightbox öffnen lassen?
Danke
Gruß Marco
Das würde mich auch sehr interessieren. Hat da jemand vielleicht eine Idee?
Du musst ein Seitenlayout "ohne Alles" anlegen und nur in der Hauptspalte "Artikel" platzieren. Dann dieses Layout in der Seitenstruktur der Leser-Seite zuordnen und auf der Seite selbst das Leser-Modul einfügen. Danach im Template z. B. cal_default.html5 folgenden Code für den Link verwenden
Ich benutze diese Lightbox https://github.com/fritzmg/contao-magnific-popupCode:<table class="calendar"> <thead> <tr> <th colspan="1" class="head previous"><?php if ($this->prevHref): ?><a href="<?= $this->prevHref ?>" title="<?= $this->prevTitle ?>"><</a><?php else: ?> <?php endif; ?></th> <th colspan="5" class="head current"><?= $this->current ?></th> <th colspan="1" class="head next"><?php if ($this->nextHref): ?><a href="<?= $this->nextHref ?>" title="<?= $this->nextTitle ?>">></a><?php else: ?> <?php endif; ?></th> </tr> <tr> <?php foreach ($this->days as $i=>$day): ?> <th class="label<?= $day['class'] ?>"><?= utf8_substr($day['name'], 0, $this->substr) ?><span><?= utf8_substr($day['name'], $this->substr) ?></span></th> <?php endforeach; ?> </tr> </thead> <tbody> <?php foreach ($this->weeks as $class=>$week): ?> <tr class="<?= $class ?>"> <?php foreach ($week as $day): ?> <td class="<?= $day['class'] ?>"> <div class="header"><?= $day['label'] ?></div> <?php foreach ($day['events'] as $event): ?> <div class="event cal_<?= $event['parent'] ?><?= $event['class'] ?>"> <a data-lightbox="iframe 800 600" href="<?= $event['href'] ?>" title="<?= $event['title'] ?> (<?php if ($event['day']) echo $event['day'] . ', '; ?><?= $event['date'] ?><?php if ($event['time']) echo ', ' . $event['time']; ?>)"<?= $event['target'] ?>><?= $event['link'] ?></a> </div> <?php endforeach; ?> </td> <?php endforeach; ?> </tr> <?php endforeach; ?> </tbody> </table>
Die gibt es auch im ER.
Viele Grüße,
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen