-
Event Reader in Lightbox
Hallo,
ich suche eine Möglichkeit den Link zur Event reader-Seite der "Eventliste" mit Template "event_upcoming" in einer Lightbox öffnet. Also die Lesen-Seite soll in einer Lightbox geöffnet werden!
Leider gelingt mir das nicht. Habe dazu auch folgenden Beitrag gelesen. Der mir aber nicht weiterhilft!?
Evtl. kann mir jemand einen Tipp geben wo ich rel="lightbox" einbauen kann.
Anbei der code aus Template "event_upcoming":
PHP-Code:
<div class="event layout_upcoming<?php echo $this->classUpcoming; ?>">
<span class="date"><?php echo $this->date; ?></span>
<a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?> (<?php if ($this->day): echo $this->day; ?>, <?php endif; echo $this->date; if ($this->time): ?>, <?php echo $this->time; endif;?>)"<?php echo $this->target; ?>><?php echo $this->link; ?></a>
<?php if ($this->time): ?>
<span class="time">(<?php echo $this->time; ?>)</span>
<?php endif; ?>
</div>
Danke!
-
PHP-Code:
<div class="event layout_upcoming<?php echo $this->classUpcoming; ?>">
<span class="date"><?php echo $this->date; ?></span>
<a rel="lightbox" href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?> (<?php if ($this->day): echo $this->day; ?>, <?php endif; echo $this->date; if ($this->time): ?>, <?php echo $this->time; endif;?>)"<?php echo $this->target; ?>><?php echo $this->link; ?></a>
<?php if ($this->time): ?>
<span class="time">(<?php echo $this->time; ?>)</span>
<?php endif; ?>
</div>
-
Hallo thepixture,
danke! Aber es geht bei mir nicht. :-(
Bei Klick öffnet sich leider immer noch ganz normal die "Lesen-Seite"!?
-
So, nun hab ich es wieder mal selber gelöst nach viel zu langen Suchen hier und da. Wen es interessiert...
contao Version: 2.11.2
Template: event_upcoming.html5
data-lightbox="[600 600]" anstelle von rel="lightbox" eingefügt
Im Theme: moo_mediabox ausgewählt
Zuerst ein "leeres" Theme erstellt alles unnötige entfernt und das Theme der "reader-Seite zugewiesen".
Das wars.
zu sehen hier rechts oben. (falls Termine vorhanden!)
HTML-Code:
<div class="event layout_upcoming<?php echo $this->classUpcoming; ?>">
<span class="date"><?php echo $this->date; ?></span>
<?php if ($this->time): ?>
<span class="time">// Zeit (<?php echo $this->time; ?>)</span>
<?php endif; ?>
<div class="event_titel"><a data-lightbox="lightbox" href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?> (<?php if ($this->day): echo $this->day; ?>, <?php endif; echo $this->date; if ($this->time): ?>, <?php echo $this->time; endif;?>)"><?php echo $this->target; ?>» <?php echo ($this->title); ?></a></div>
</div>