PT Calendar2 Event Organization Template

From ADF Docs
Revision as of 20:13, 27 April 2010 by Gcronkright (talk | contribs)
Jump to: navigation, search

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.