Difference between revisions of "PT Calendar2 Daily View Page"
From ADF Docs
Gcronkright (talk | contribs) |
Gcronkright (talk | contribs) |
||
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'''. |
Revision as of 13:49, 10 May 2010
Back to Build Subsites, Templates and Pages
Overview
The Daily View page shows a list view of events for a day.
To construct a Daily View page complete the following steps.
Steps
- Create a CommonSpot page with a name of 'Weekly List 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 day of events and the Daily 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.fullDate, '00:00:01')
- 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.fullDate, '23:59:59')
- 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 Daily View Render Handler
- On the Calendar element indicator, Click More.
- Then the Custom Render Handlers menu option, and choose theView Events by Day Render Handler.
- Submit the Page.