Jump to main content Jump to doc navigation

emListEvents: сниппет EventManager для списка событий из кастомной базы данных.

Документация к этому разделу будет дополнена позже.

Свойства

Selection Properties

Property Description Default value
&limit Лимит числа событий в выводе. 3
&reserveResource ID ресурса со формой бронирования. Скрипт сформирует ссылку с «eid=5», где 5: ID события, доступный в плейсхолдере reservationlink.
&default ID события по умолчанию. Можно использовать @GET для параметра REQUEST. Плейсхолдер «default» в строке вывода сравнивается с текущим. См. emRowSelectBoxTpl. @GET eid

Template Properties

Property Description Default value
&rowTpl Имя чанка для итерации по событиям. Плейсхолдеры: - eventid (int, primary key) - date (time, formatted with strftime('%A %e/%m, %H:%M'))
- title (string)
- description (string)
- reservationlink (link to &reservationResource with &eid=5 passed to it)
- default (string, see &default property above)
- capacity (int)
- last_signup `(i
&emRowTpl (included in package) <p>[[+date]]</p> <p></p>[[+title]]</p> <p>[[+description]]<br />[[+reservationlink]]</p>

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • Alex
  • A. Moreno
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • deJaya
  • JT Skaggs
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$204 per month—let's make that $500!

Learn more