EE 1
EE 2
Week Range
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Print out a single week of a calendar, or get Month, Day, or Year values from a week range with a given date.
Print out a single week of a calendar, or get Month, Day, or Year values from a week range with a given date. Defaults to today’s date.
Loop through each day of the week, and print a calendar.
{exp:week_range:days}
<li class="calendar_day ">
<span class="day_number">{day}</span>
<span class="day_name">{day_of_week}</span>
{embed="global/_calendar-day" year="{year}" month="{month}" day="{day}"}
</li>
{/exp:week_range:days}
Find all events for each day.
{exp:weblog:entries weblog="events" dynamic="off" show_future_entries="yes" year="{embed:year}" month="{embed:month}" day="{embed:day}"}
{title}
{/exp:weblog:entries}
To print “September 27–October 3, 2009”
{exp:week_range:full_date format_month="F" format_day="j" format_year="Y" date="2009-10-01"}
Other available methods:
{exp:week_range:day format_day="j"}
{exp:week_range:month format_month="F"}
{exp:week_range:year format_year="Y"}
{exp:week_range:day_of_week}
Parameters
—————————
date= (optional)
Change the date you want to pass to it. Defaults to today. e.g. 2009-10-1
get= (optional default: false, options: day, month, year, day_of_week, full_date)
Get various parts of a date
increment= (optional default: 0)
If you use some sort of other loop generator (e.g. Loop plugin)
date= (optional default: date(‘Y-m-d’))
Define another date to start from
separator= (optional default: ‘–’)
If you want to separate dates with something else
format_month= (optional default: ‘m’)
Use any valid PHP date format character
format_day= (optional default: ‘d’)
Use any valid PHP date format character
format_day_of_week= (optional default: ‘l’)
Use any valid PHP date format character
format_year= (optional default: ‘Y’)
Use any valid PHP date format character
today_first= (optional default: ‘no’)
If ‘yes’, the 7 day calendar will start with today’s date
Week Range Links
This entry was last updated May 20, 2010, 6:09 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!