Difference between revisions of "PT Calendar2 Event Organization Template"

From ADF Docs
Jump to: navigation, search
Line 2: Line 2:
  
 
== Overview ==
 
== Overview ==
Each "Event Organization" that requires their own custom calendar should have its own template built from the main "Calendar Template". These individual organization templates will be used for each organization's to render calendar view pages.
+
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 with for each "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.)
+
# 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 custom calendar views.
+
# 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

  1. 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.)
  2. Click Render Mode in the element interface.
  3. Select Display existing element data (content reuse) on the Rendering Mode tab.
  4. Select the Filter tab.
  5. Select Filter Type to Show subset of records.
  6. Select the Field drop-down as the date field.
  7. Select the operator as Greater Than or Equals.
  8. Click the '...' button to open the ColdFusion expression window.
  9. Enter the the following text as the expression:
    1. application.ptCalendar2.Date.firstOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
  10. Uncheck the force cache checkbox.
  11. Click OK and then check the box to Ignore ColdFusion error
  12. Then click OK
  13. Now use the drop-down under the Date field and choose AND
  14. In the second Field drop-down that appears select date' again.
  15. For the second operator select Less Than or Equals.
  16. For the second value click the '...' button to open the ColdFusion expression window.
  17. Enter the the following text as the expression:
    1. application.ptCalendar2.Date.lastOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
  18. Uncheck the force cache checkbox.
  19. Click OK and then check the box to Ignore ColdFusion error
  20. Then click OK
  21. Now use the drop-down under the second Date field and choose AND
  22. In the Field drop-down that appears select Approved'
  23. For the third operator select Equals.
  24. For the third value drop-down select 1.
  25. For the Sort Order drop-down select the Date field and choose Ascending
  26. Click OK on the render mode window.


  1. Submit and activate the page.
  2. Save the page as a template.
  3. Submit the template for public use.
  4. Repeat for each "Event Organization" that will have their own filtered calendar views.