Skip to content

Upcoming Events View

femkevanderzalm edited this page Sep 9, 2016 · 5 revisions

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:

Upcoming Events

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.

Go back to: Frequently Asked Questions

Clone this wiki locally