PT Calendar2 Calendar Template

From ADF Docs
Revision as of 17:41, 13 October 2010 by Ssmith (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Back to Build Subsites, Templates and Pages

Overview

The Calendar template will be used as the foundation to render calendar pages. This template will be used for the "All Event" Monthly Calendar View.


Steps

  1. Create a CommonSpot page called 'Calendar' from the Base Plus One template. (The subsite for this is not critical but it may be a good idea to create a subsite called calendar.)
  2. In a container element in the body of the page, add a Custom Script element.
  3. From the Custom Script element interface, click the Edit icon.
  4. Enter the following text into the Explicit Module path:
    1. /ADF/apps/pt_calendar2/customcf/calendar_standard_setup.cfm
  5. Next add the Calendar2 Custom Element on this page.
  6. Click Render Mode in the element interface.
  7. Select Display existing element data (content reuse) on the Rendering Mode tab.
  8. Select the Filter tab.
  9. Select Filter Type to Show subset of records.
  10. Select the Field drop-down as the date field.
  11. Select the operator as Greater Than or Equals.
  12. Click the '...' button to open the ColdFusion expression window.
  13. Enter the the following text as the expression:
    1. application.ptCalendar2.Date.firstOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
  14. Uncheck the force cache checkbox.
  15. Click OK and then check the box to Ignore ColdFusion error
  16. Then click OK
  17. Now use the drop-down under the Date field and choose AND
  18. In the second Field drop-down that appears select date' again.
  19. For the second operator select Less Than or Equals.
  20. For the second value click the '...' button to open the ColdFusion expression window.
  21. Enter the the following text as the expression:
    1. application.ptCalendar2.Date.lastOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
  22. Uncheck the force cache checkbox.
  23. Click OK and then check the box to Ignore ColdFusion error
  24. Then click OK
  25. Now use the drop-down under the second Date field and choose AND
  26. In the Field drop-down that appears select Approved'
  27. For the third operator select Equals.
  28. For the third value drop-down select 1.
  29. For the Sort Order drop-down select the Date field and choose Ascending
  30. Click OK on the render mode window.
  31. Submit and activate the page.
  32. Save the page as a template.
  33. Submit the template for public use.