tplEvent2
Last updated Dec 7th, 2019 | Page history | Improve this page | Report an issue
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
Budget
$305 per month—let's make that $500!
Learn moreUsage¶
This chunk is a template for one event in the day.
<div>
<span class="num"><b>[[+ec.num]].</b></span>
<span class="eventdate">[[+ec.date]]</span>
<span class="link"><a href="[[+ec.url]]">[[+ec.longtitle:default=`[[+ec.pagetitle]]`]]</a></span>
<span class="notice">[[+ec.introtext]]</span>
</div>
Placeholders¶
Name | Description |
---|---|
num | Number of event in day. |
url | Link to resource of this event. |
date | Date of event. |
You can use all placeholders from MODX resources. See it there.
If you displaying events from custom source (param &events=``) all properties in events array will be converted to placeholders.
See Also¶
- eventsCalendar2.eventsCalendar2
- eventsCalendar2.Generating events
- eventsCalendar2.tplCalendar2
- eventsCalendar2.tplCell2
- eventsCalendar2.tplEvent2
- eventsCalendar2.tplHead2
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
Budget
$305 per month—let's make that $500!
Learn more