Jump to content

kater

Members
  • Posts

    132
  • Joined

  • Last visited

Community Answers

  1. kater's post in Find / Output Page With Repeater Multiple Times was marked as the answer   
    *facepalm*
    $thisyr=date(Y); $nxtyr=date(Y)+1; $aftnxtyr=date(Y)+2; echo "<h1>{$page->title}</h1>"; echo $thisyr; foreach($pages->find("event_ende|event_daterepeater.event_ende>=01/01/$thisyr,event_beginn|event_daterepeater.event_beginn<01/01/$nxtyr") as $s) { echo "<li><a href='{$s->url}'>{$s->title}</a>, {$s->event_beginn} - {$s->event_ende} | {$pages->get("$s->event_location")->title}</li>"; foreach($s->event_daterepeater as $sr) { echo "<li><a href='{$s->url}'>{$s->title}</a>, {$sr->event_beginn} - {$sr->event_ende} | {$pages->get("$s->event_location")->title}</li>"; }} echo "</br>Vorschau $nxtyr"; foreach($pages->find("event_beginn>01/01/$nxtyr,event_beginn<01/01/$aftnxtyr") as $s) { echo "<li><a href='{$s->url}'>{$s->title}</a>, {$s->event_beginn} - {$s->event_ende} | {$pages->get("$s->event_location")->title}</li>"; }
×
×
  • Create New...