Difference between revisions of "PT Calendar2 Event Organization Template"

From ADF Docs
Jump to: navigation, search
Line 6: Line 6:
 
== Steps ==
 
== 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.)
 
# 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.
+
# From the '''Calendar''' element interface, click the ''Render Mode'' icon.
# Select '''Display existing element data (content reuse)''' on the '''Rendering Mode''' tab.
 
 
# Select the '''Filter''' tab.  
 
# Select the '''Filter''' tab.  
# Select Filter Type to '''Show subset of records'''.
+
# Add another row of criteria by using the drop-down under the '''Approved''' field and choose '''AND'''.
# Select the '''Field''' drop-down as the '''date''' field.
+
# Now in the forth '''Field'' drop-down that appears select '''Organization'''.  
# Select the operator as '''Greater Than or Equals'''.
+
# For the forth operator select '''Any List Entries Contained In'''.
# Click the '...' button to open the ColdFusion expression window.
+
# For the forth value select the "organization(s)" whose events should display on this template calendar views.
# Enter the the following text as the expression:
+
## hold CTRL to select multiple "organizations"
## 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.
 
# 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 their own filtered calendar views.
+
# Repeat these steps for each "Event Organization" that will have its own filtered set of calendar view pages.

Revision as of 20:22, 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. From the Calendar element interface, click the Render Mode icon.
  3. Select the Filter tab.
  4. Add another row of criteria by using the drop-down under the Approved field and choose AND.
  5. Now in the forth Field drop-down that appears select Organization'.
  6. For the forth operator select Any List Entries Contained In.
  7. For the forth value select the "organization(s)" whose events should display on this template calendar views.
    1. hold CTRL to select multiple "organizations"
  8. Click OK on the render mode window.
  9. Submit and activate the page.
  10. Save the page as a template.
  11. Submit the template for public use.
  12. Repeat these steps for each "Event Organization" that will have its own filtered set of calendar view pages.