Monday, September 06, 2010

DNN Modules, DotnetNuke Modules Sponsor.Delivering High Value DotnetNuke Modules
to Save You Time and Resources.

Invenmanager User Forum

Minimize
New Token or Ability to Customize [EVENTDATE] Token
Last Post 02 Mar 2010 11:44 PM by Inven Manager. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
James McMullen
New Member
New Member
Posts:7

--
01 Mar 2010 01:24 AM  
Your [EVENTDATE] token is great, but isn't always what I need for my layout, especially in list view where I don't want to show the times.

I'd like to be able to turn off the time portion of that Token so that it would show the single date ("3/1") for a one-day event, and multiple days ("3/1 - 3/3") for a multi-day event -- exactly like it does now but without the times.

I would think that creating a new token like this would be very easy if you used the existing token as a starting point.
Inven Manager
Veteran Member
Veteran Member
Posts:3800
Avatar

--
01 Mar 2010 02:32 AM  
If it is for one-day event, it should display event date string without time.
Isn't it so?

Or you can try:
[STARTDATE|M/d] - [ENDDATE||M/d]

But this will always display two date, such as 3/1 - 3/1 for single day event.

========================================
Delivering high value DotnetNuke Modules to save your time and resources
James McMullen
New Member
New Member
Posts:7

--
01 Mar 2010 02:56 AM  
>> If it is for one-day event, it should display event date string without time.
>> Isn't it so?

No, it displays the event times unless the event is an all-day event (and thus has no times to display)

>> Or you can try:
>> [STARTDATE|M/d] - [ENDDATE||M/d]
>> But this will always display two date, such as 3/1 - 3/1 for single day event.

Yes, I tried that, but it looks terrible for one-day events.

That's why I'd like one that doesn't display the times at all.
Inven Manager
Veteran Member
Veteran Member
Posts:3800
Avatar

--
01 Mar 2010 11:27 PM  
James,

I tested using [EVENTDATE|M/d] actually works as the way you suggested.

For All day events, no time will be displayed.
Unless it is not an all-day event in your case? but you want to suppress the time portion?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
James McMullen
New Member
New Member
Posts:7

--
02 Mar 2010 03:08 AM  
EXACTLY! Most "events" I would need to schedule/list on a web site are not all-day events. A festival, luncheon, committee meeting, company picnic, cub scout meeting, etc. all have start/stop times.

Here's an example of how I want my list view to look (pretty standard stuff, easy to find events with a glance, click for the times and more details):

3/1 Board Luncheon
3/2 - 3/4 Sales Convention
3/12 Company Picnic
3/14 Company Holiday (no work!)
3/25 Long Range Planning Committee Meeting

If any event has a time, then using the [EVENTDATE] token will make it look like this (which is much harder to scan/read - and it just doesn't look as nice)

3/1 12:00 - 2:30 pm Board Luncheon
3/2 - 3/4 Sales Convention
3/12 11:00am - 3:00pm Company Picnic
3/14 Company Holiday (no work!)
3/25 10:00am - 5:00pm Long Range Planning Committee Meeting

or you could just use the [STARTDATE] token which would make multi-day events look like a one-day event

3/2 Sales Convention

This is the option I'm currently using, but I don't like it because it doesn't give the whole picture.

The only other option I can think of would be to not put times on ANY event, but that makes the module less useful as a working calendar (and messes up sorting by date/time).

A simple tag addition like [EVENTDATENOTIMES] would solve the problem nicely.

Thanks.

James McMullen
New Member
New Member
Posts:7

--
02 Mar 2010 03:10 AM  
Note that my examples above would probably be displayed as tables so the dates would be in one column and the events in another - although they wouldn't have to be.
Inven Manager
Veteran Member
Veteran Member
Posts:3800
Avatar

--
02 Mar 2010 11:43 PM  
James,

Well, this is something we never thought of, we will add this token for you in the next update.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Inven Manager
Veteran Member
Veteran Member
Posts:3800
Avatar

--
02 Mar 2010 11:44 PM  
James,

Well, this is something we never thought of, we will add this token for you in the next update.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
You are not authorized to post a reply.

Active Forums 4.1
Bookmark and Share
Copyright (c) 2009 InvenManager Solutions. All Rights Reserved.