localendar Forums Homepage

Print at Apr 16, 2024, 5:40:43 AM View all posts in this thread on one page
Posted by FacDevTeam at Jan 19, 2017, 7:19:10 PM
Can Localendar be set to display a specific date range only?
I am trying to use this calendar to only display events on two dates. I have followed the instructions found in a previous forum post, but it does not seem to be working. I want my calendar to display events on Feb. 1 and 2nd only in the Daily view.

I am using this HTML code:
<SCRIPT type="text/javascript" src="//localendar.com/public/FacDevTeam?style=D0&include=Y&start date= 2/1/2017"></SCRIPT>


When I use this code, the calendar still only displays the current date (1/19/2017).

What am I doing wrong?

Thank you!
Michelle

Posted by support at Jan 27, 2017, 2:31:50 AM
Re: Can Localendar be set to display a specific date range only?
It sounds as if you are requesting a 2-Day style calendar view?
The code you are using will display a 1 Day-View for Feb 1 only.

Although we don't specifically have a "2-Day Event View", there is a kind of sneaky way you can make one by customizing our "Today+Happening Soon" view. Try this:

Go into Options->General and click the "Show More>>" link near the bottom of the General tab. Set the "Happening Soon looks ahead" value to 2 days.

You should also change the Today and Happening Soon labels to either Feb 1 and Feb 2, or something generic like Day 1 and Day 2.

Now, use this script instead on your site:

<SCRIPT type="text/javascript" src="//localendar.com/public/FacDevTeam?style=D2&include=Y&start date= 2/1/2017"></SCRIPT>

D2 is the code for the Today+Happening Soon view (you were previously using D0, the code for the Day view)

That's the best solution I can come up with - let me know how you make out.
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news


Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us