Difference between revisions of "PT Calendar2 Weekly Grid View Page"
From ADF Docs
Gcronkright (talk | contribs) |
Gcronkright (talk | contribs) (→Steps) |
||
Line 23: | Line 23: | ||
## Then click '''OK''' | ## Then click '''OK''' | ||
## Now use the drop-down under the '''Date''' field and if not selected, choose '''AND''' | ## Now use the drop-down under the '''Date''' field and if not selected, choose '''AND''' | ||
− | ## In the second '''Field'' drop-down that appears if not selected, select '''date''' again. | + | ## In the second '''Field''' drop-down that appears if not selected, select '''date''' again. |
## For the second operator if not selected, select '''Less Than or Equals'''. | ## For the second operator if not selected, 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. | ||
Line 32: | Line 32: | ||
## Then click '''OK''' | ## Then click '''OK''' | ||
## Now use the drop-down under the second '''Date''' field and if not selected, choose '''AND''' | ## Now use the drop-down under the second '''Date''' field and if not selected, choose '''AND''' | ||
− | ## In the '''Field'' drop-down that appears if not selected, select '''Approved''' | + | ## In the '''Field''' drop-down that appears if not selected, select '''Approved''' |
## For the third operator if not selected, select '''Equals'''. | ## For the third operator if not selected, select '''Equals'''. | ||
## For the third value drop-down if not selected, select '''1'''. | ## For the third value drop-down if not selected, select '''1'''. |
Latest revision as of 13:51, 10 May 2010
Back to Build Subsites, Templates and Pages
Overview
The Weekly Grid View page shows a full week in a grid style view.
To construct a Weekly Grid View page complete the following steps.
Steps
- Create a CommonSpot page with a name of 'Weekly Grid All Events' using the Calendar template and place it in the Calendar subsite.
- Since the this page is being created from the Calender Template which already contains the Calendar Custom Element and it is filtered for a Monthly view, the Filter will need to be adjusted to only display a week of events and the Weekly Grid View Render Handler will need applied.
- Adjust the Custom Element Data Filter
- Click Render Mode in the element interface.
- If not selected, select Display existing element data (content reuse) on the Rendering Mode tab.
- Select the Filter tab.
- If not selected, select Filter Type to Show subset of records.
- If not selected, select the Field drop-down as the date field.
- If not selected, select the operator as Greater Than or Equals.
- Click the '...' button to open the ColdFusion expression window.
- Replace the month filter expression with the following text as the expression:
- application.ptCalendar2.Date.csDateFormat(request.ptcalendar2.firstOfThisWeek)
- If checked, 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 if not selected, choose AND
- In the second Field drop-down that appears if not selected, select date again.
- For the second operator if not selected, select Less Than or Equals.
- For the second value click the '...' button to open the ColdFusion expression window.
- Replace the month filter expression with the the following text as the expression:
- application.ptCalendar2.Date.csDateFormat(request.ptcalendar2.lastOfThisWeek)
- If checked, 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 if not selected, choose AND
- In the Field drop-down that appears if not selected, select Approved
- For the third operator if not selected, select Equals.
- For the third value drop-down if not selected, select 1.
- For the Sort Order drop-down if not selected, select the Date field and choose Ascending
- Click OK on the render mode window.
- Select the Week Grid Render Handler
- On the Calendar element indicator, Click More.
- Then the Custom Render Handlers menu option, and choose theView Events by Week Grid Render Handler.
- Submit the Page.