-
Notifications
You must be signed in to change notification settings - Fork 40
Upcoming Events View
A common request is for an upcoming events view. With version 5.1.0 we have added the flexibility into the list view to enable this type of functionality. Previously the event title field was mandatory, which it now isn't. The description field has been templateable for a couple of versions, so it is now possible to show only the description field to format up event information in whatever layout you want. The following information gives information on how a fairly simple view could be created.
The following view has been created using Events 5.1.0:
To cut the view to the bare minimum, I set Collapse/Expand to None, and disable Allow Print in the module settings. Then in the Events Settings (now a separate item from module settings), I set the following items:
- Look & Feel Settings
- Default View - List
- Module Views Allow - List only
- Enable Category Select - Unticked
- Icon Bar - None
- Event List Settings
- Show Table Header - No
- Event Fields to Display - Description
- Collapse Recurring - Ticked
- Various Event Selections - Set to default, but you can configure as you like
I then set the List View Description template as follows:
<div style="font-size:11px;">
[event:startdate|D]</br>
[RECURRINGEVENT][event:recurring]</br>[/RECURRINGEVENT]
[event:title] (<a href="[event:eventurl]">link</a>)
</div>
I added a div around the template, only because I didn't want to go and edit my CSS, but equally I could have added some classes, and used the styles from CSS.
Hopefully this is clear. Otherwise post over at the DNN Events Forum.
Introduction System Requirements
- Events Module settings
- Date Format
- Event dates without time
- Event details in place or not
- Event Settings
- Event Themes
- Event Views
- Templating Event Views
- Purge old events
- Custom Event themes
- Select Category via URL
- Select Start Date via URL
- RSS in the Events Module
- iCal support
- Upcoming Events View
- Repeater view
- Video Tutorials
- Open Location URL
- The use of Templates
- Tokens to be used in Templates
- Daylight Saving Time
- The same Events on two pages
- Install module for Development