+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to: Show Event Start Date in the Event Control

How to: Show Event Start Date in the Event Control

1 posts, 0 answered
  1. Brett Whittington
    Brett Whittington avatar
    33 posts
    Registered:
    12 Jan 2012
    09 Feb 2012
    Link to this post

    I am posting this because I had to do some digging through forums and FAQs to figure out how to do this since I am new to Sitefinity.  Since I needed to do this, I am sure others have had need of doing this too. This is a method of changing the event control's default setting of showing the publication date to the event start date and then sorting the event by event start order ascending.  There is a of caveat though.  Changing the control template will change all of your event controls to use the event date instead of the publishing date.

    The following changes can be made to show the event's start date sorted ascending:

    1. Navigate to the Event Control in the Sitefinity folder structure.
      • "\Sitefinity\ControlTemplates\Events"
    2. Open up the DateTitleList.ascx
    3. Change the literal control's id from "Publication_Date" to "Event_Start"
    4. Edit the page containing the event control in Sitefinity
    5. Edit the event control
    6. Click the Advanced tab
    7. Expand the Filter section
    8. Change Sort Expression from "Publication_Date DESC" to "Event_Start ASC"
1 posts, 0 answered