Difference between revisions of "PT Calendar2 Calendar Template"

From ADF Docs
Jump to: navigation, search
 
(5 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
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.
 
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.
  
If your site well need additional calendar views with events filtered by "Event Organization" then also follow the steps in the [[PT_Calendar2_Event_Organization_Template|Event Organization Template(s)]] section.
+
<!-- If your site well need additional calendar views with events filtered by "Organization" then follow the steps in the [[PT_Calendar2_Event_Organization_Template|Event Organization Template(s)]] section. -->
  
 
== Steps ==
 
== Steps ==
Line 10: Line 10:
 
# In a container element in the body of the page, add a Custom Script element.
 
# In a container element in the body of the page, add a Custom Script element.
 
# From the Custom Script element interface, click the ''Edit'' icon.
 
# From the Custom Script element interface, click the ''Edit'' icon.
# Enter the following text into the Explicit Module path: ''/ADF/apps/pt_calendar2/customcf/calendar_standard_setup.cfm''
+
# Enter the following text into the Explicit Module path:  
# Next add the ''Calendar'' Custom Element on this page.
+
##''/ADF/apps/pt_calendar2/customcf/calendar_standard_setup.cfm''
# Click ''Render Mode'' in the element interface.
+
# Next add the ''Calendar2'' Custom Element on this page.
# Select ''Display existing element data (content reuse)'' on the ''Rendering Mode'' tab.
+
# Click '''Render Mode''' in the element interface.
# Select the ''Filter'' tab.  
+
# Select '''Display existing element data (content reuse)''' on the '''Rendering Mode''' tab.
# Select Filter Type to ''Show subset of records''.
+
# Select the '''Filter''' tab.  
# Select the '''Field''' drop-down as the ''date'' field.  
+
# Select Filter Type to '''Show subset of records'''.
# Select the operator as ''Greater Than or Equals''.
+
# 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.
 
# Click the '...' button to open the ColdFusion expression window.
 
# Enter the the following text as the expression:
 
# Enter the the following text as the expression:
## ''application.ptCalendar2.Date.firstOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)''
+
## application.ptCalendar2.Date.firstOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
 
# Uncheck the ''force cache'' checkbox.   
 
# Uncheck the ''force cache'' checkbox.   
# Click ''OK'' and then check the box to ''Ignore ColdFusion error''
+
# Click '''OK''' and then check the box to '''Ignore ColdFusion error'''
# Then click ''OK''
+
# Then click '''OK'''
# Now use the drop-down under the "Date" field and choose "AND"
+
# Now use the drop-down under the '''Date''' field and choose '''AND'''
# In the second '''Field'' drop-down that appears select ''date'' again.  
+
# In the second '''Field'' drop-down that appears select '''date''' again.  
# For the second operator select ''Less Than or Equals''.
+
# For the second operator select '''Less Than or Equals'''.
 
# For the second value click the '...' button to open the ColdFusion expression window.
 
# For the second value click the '...' button to open the ColdFusion expression window.
 
# Enter the the following text as the expression:
 
# Enter the the following text as the expression:
## ''application.ptCalendar2.Date.lastOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)''
+
## application.ptCalendar2.Date.lastOfMonth(request.ptcalendar2.thisMonth, request.ptcalendar2.thisYear)
# Uncheck the ''force cache'' checkbox.   
+
# Uncheck the '''force cache''' checkbox.   
# Click ''OK'' and then check the box to ''Ignore ColdFusion error''
+
# Click '''OK''' and then check the box to '''Ignore ColdFusion error'''
# Then click ''OK''
+
# Then click '''OK'''
# Now use the drop-down under the second "Date" field and choose "AND"
+
# Now use the drop-down under the second '''Date''' field and choose '''AND'''
# In the '''Field'' drop-down that appears select ''Approved''  
+
# In the '''Field'' drop-down that appears select '''Approved'''  
# For the third operator select ''Equals''.  
+
# For the third operator select '''Equals'''.  
# For the third value drop-down select ''1''.  
+
# For the third value drop-down select '''1'''.  
# For the '''Sort Order''' drop-down select the ''date'' field and choose '''Ascending'''
+
# For the '''Sort Order''' drop-down select the '''Date''' field and choose '''Ascending'''
# Click ''OK'' on the render mode window.
+
# 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.

Latest revision as of 17:41, 13 October 2010

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.