Difference between revisions of "PT Calendar2 Event Organization Template"
From ADF Docs
Gcronkright (talk | contribs) |
Gcronkright (talk | contribs) |
||
Line 2: | Line 2: | ||
== Overview == | == Overview == | ||
− | + | For each "Event Organization" that requires its own custom calendar should have its own template built from the main "Calendar Template". These individual organization templates will be used to render the filtered events for each organization's calendar view pages. | |
== Steps == | == Steps == | ||
− | # Create a CommonSpot page | + | # Create a CommonSpot page for the '''"Event Organization"''' from the '''Calendar''' template. (The subsite for this is not critical but it may be a good idea to keep these templates together in the '''calendar''' subsite.) |
+ | # Click '''Render Mode''' in the element interface. | ||
+ | # Select '''Display existing element data (content reuse)''' on the '''Rendering Mode''' tab. | ||
+ | # Select the '''Filter''' tab. | ||
+ | # Select Filter Type to '''Show subset of records'''. | ||
+ | # Select the '''Field''' drop-down as the '''date''' field. | ||
+ | # Select the operator as '''Greater Than or Equals'''. | ||
+ | # Click the '...' button to open the ColdFusion expression window. | ||
+ | # Enter the the following text as the expression: | ||
+ | ## application.ptCalendar2.Date.firstOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear) | ||
+ | # Uncheck the ''force cache'' checkbox. | ||
+ | # Click '''OK''' and then check the box to '''Ignore ColdFusion error''' | ||
+ | # Then click '''OK''' | ||
+ | # Now use the drop-down under the '''Date''' field and choose '''AND''' | ||
+ | # In the second '''Field'' drop-down that appears select '''date''' again. | ||
+ | # For the second operator select '''Less Than or Equals'''. | ||
+ | # For the second value click the '...' button to open the ColdFusion expression window. | ||
+ | # Enter the the following text as the expression: | ||
+ | ## application.ptCalendar2.Date.lastOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear) | ||
+ | # Uncheck the '''force cache''' checkbox. | ||
+ | # Click '''OK''' and then check the box to '''Ignore ColdFusion error''' | ||
+ | # Then click '''OK''' | ||
+ | # Now use the drop-down under the second '''Date''' field and choose '''AND''' | ||
+ | # In the '''Field'' drop-down that appears select '''Approved''' | ||
+ | # For the third operator select '''Equals'''. | ||
+ | # For the third value drop-down select '''1'''. | ||
+ | # For the '''Sort Order''' drop-down select the '''Date''' field and choose '''Ascending''' | ||
+ | # Click '''OK''' on the render mode window. | ||
+ | |||
+ | |||
# Submit and activate the page. | # Submit and activate the page. | ||
# Save the page as a template. | # Save the page as a template. | ||
# Submit the template for public use. | # Submit the template for public use. | ||
− | # Repeat for each "Event Organization" that will have | + | # Repeat for each "Event Organization" that will have their own filtered calendar views. |
Revision as of 20:13, 27 April 2010
Back to Build Subsites, Templates and Pages
Overview
For each "Event Organization" that requires its own custom calendar should have its own template built from the main "Calendar Template". These individual organization templates will be used to render the filtered events for each organization's calendar view pages.
Steps
- Create a CommonSpot page for the "Event Organization" from the Calendar template. (The subsite for this is not critical but it may be a good idea to keep these templates together in the calendar subsite.)
- Click Render Mode in the element interface.
- Select Display existing element data (content reuse) on the Rendering Mode tab.
- Select the Filter tab.
- Select Filter Type to Show subset of records.
- Select the Field drop-down as the date field.
- Select the operator as Greater Than or Equals.
- Click the '...' button to open the ColdFusion expression window.
- Enter the the following text as the expression:
- application.ptCalendar2.Date.firstOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
- Uncheck the force cache checkbox.
- Click OK and then check the box to Ignore ColdFusion error
- Then click OK
- Now use the drop-down under the Date field and choose AND
- In the second Field drop-down that appears select date' again.
- For the second operator select Less Than or Equals.
- For the second value click the '...' button to open the ColdFusion expression window.
- Enter the the following text as the expression:
- application.ptCalendar2.Date.lastOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
- Uncheck the force cache checkbox.
- Click OK and then check the box to Ignore ColdFusion error
- Then click OK
- Now use the drop-down under the second Date field and choose AND
- In the Field drop-down that appears select Approved'
- For the third operator select Equals.
- For the third value drop-down select 1.
- For the Sort Order drop-down select the Date field and choose Ascending
- Click OK on the render mode window.
- Submit and activate the page.
- Save the page as a template.
- Submit the template for public use.
- Repeat for each "Event Organization" that will have their own filtered calendar views.