Creative Web Site Package - sort events by Event Date Options
ascendinternet
Posted: Monday, December 03, 2007 2:14:04 AM

Rank: Aficionado

Joined: 11/16/2007
Posts: 164
Location: Surrey, UK
I have the Creative Web Site Package installed and I am trying to get events sorted by Event Date. I will also want to seperate News and Events ... but that's the next job;)

I tried adding "EventDate" to the "Sort By List" data type and selecting it in the News & Events page (Settings tab). However, the events still display in the order I entered them:(

Is it possible to sort by event date? I can't rely on the eventual users to sort the events themselves, within the admin site, it needs to be done on the Event date.

Gordon Saxby | Ascend Internet Limited | Web Site Development. Web Site Hosting (inc Umbraco)
ascendinternet
Posted: Tuesday, December 04, 2007 2:05:46 AM

Rank: Aficionado

Joined: 11/16/2007
Posts: 164
Location: Surrey, UK
Does what I'm trying to do sound reasonable ... and possible?

Gordon Saxby | Ascend Internet Limited | Web Site Development. Web Site Hosting (inc Umbraco)
warren
Posted: Tuesday, December 04, 2007 10:23:56 AM

Rank: Addict

Joined: 7/19/2006
Posts: 820
Location: Benfleet, Essex, UK
Hello Gordan,
I have seen your email to me and I am currently will be revisiting my package.

To sort by the eventDate you will have to manually change the XSLT that lists the items.

If you change this line in ListNewsEvents.xslt

Code:
<xsl:sort select="./data [@alias = 'EventDate']" order="{$SortOrder}" data-type="{$DataType}"/>


If the XSLT shows/gives an error in the Umbraco interface, tick the checkbox to skip error checking and then test to see if this works.

The XSLT I have given you has not been tested and is just off the top of my head.

Warren

Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.