DNNDev.com Forums Minimize
Display and Expiry Dates in XMod Calendar
Last Post 11 Sep 2011 01:25 AM by Cliff Hammock. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
NextNext
You are not authorized to post a reply.
Author Messages
Cliff Hammock
Basic Member
Basic Member
Posts:201
Avatar

--
10 Sep 2011 12:20 AM  
I thought I had done some great work using display and expiry dates to show a two week scrolling view of events on my clients home page. But then when I go to the XMod calendar view I see the events are displaying every day on the calendar instead of the actual start and end date of the event.

In the main XMod configuration I can check the box to ignore display and expiry dates. Is there a way to do this with XMod Calendar? Is there any way on the template to tell it to only show up on the calendar on the start and end dates of the event?

Or conversely is there a different way to achieve the same two week scrolling view without using display and expiry dates on my home page module?
The Forerunner Network DotNetNuke Integration Specialists
DNNDev Admin
Senior Member
Senior Member
Posts:6419
Avatar

--
10 Sep 2011 01:15 AM  
Hi Cliff,

Display/Expiry dates are treated differently by the Calendar. They are used by the Calendar to determine which days to place the event in. I haven't looked into this but you may be able to use jQuery/CSS to hide the items from all but your start and end dates. You may also try adding a separate start event and end event with each event only lasting that day (according to the Calendar).

i don't have any really great ideas to throw out, unfortunately, because the dates are used differently between the two modules.

Best,
Kelly
Power Your Website With XMod Pro
Buy XMod Pro Today
Cliff Hammock
Basic Member
Basic Member
Posts:201
Avatar

--
11 Sep 2011 01:25 AM  
I am not sure how adding new date fields will help since I already have the start and end date of the event. It is just that the calendar uses the displaydate and expirydate that I calculate using this. And I cannot tell it to ignore these like in a standard XMod module.

<displaydate interval="d" value="-14" basedate="{StartDate}" />
<expirydate interval="d" value="1" basedate="{EndDate}" />

My only real requirement was to keep events on the Scrolling home page view on the actual day of the event. But since XMod uses 12am as the time for the EndDate, the events would stop showing up on the scrolling view on the day of the event. I want them to stop displaying on the day after the event EndDate.

In another thread you posted something like ... just add a day to the EndDate. I am not sure how to do math on normal XMod fields and that is why I was using the basedate.

Could I go back to setting the DisplayDate = StartDate and ExpiryDate = EndDate and then have another hidden field that somehow calculates the EndDate = EndDate+1 and then somehow use the module configuration to show events on the scrolling home page view using EndDate+1?

I know that XMod Cal is not really supported and I appreciate your reply. But my client added this "little" requirement to a very small budget effort mainly focused on basic DNN upgrade and some url rewrites. I thought with the basedate capability this would be simple. But then I realized it is causing an issue on the Calendar. Now I am going way over my time budget on a fixed price effort.

If I cannot get a really simple solution quick, I will just have to tell the client I cannot get this done.
The Forerunner Network DotNetNuke Integration Specialists
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy