Page Setup
Author: Tim Reilly
Now that our folder structure has been set up, we can begin setting
up the pages that will form our calendar.
1. Create an index page in the Calendar folder (*note: name these
pages 'index' or 'default'). In the DEFAULT region for this page,
assign the block '/common/blocks/current folder' (included in the
default database). Then attach the stylesheet
'/common/stylesheets/index/folder summary' to the same region (also
included in the default database).
2. Create an index page in the 2006 folder using the same steps as
above.
3. Create an index page in every month folder. For this page, we
will need to create a new index block - call it 'Calendar'.
For this block, we want to index our Calendar folder. The depth of
the index should be set to atleast 5. Check the box to 'Include
default page content inline in rendered XML'. For the 'Index Asset
Types' field select Pages. For Content, select Regular Content and
User Supplied Metadata. Apply this newly created block to the
DEFAULT region of your index page.
Now apply the stylesheet '/common/stylesheets/index/calendar
month' to the same region as our block.
4. Finally, create an asset factory for events. Event pages need
the data definition '/General/Calendar Event' attached to them. We
must also change the Metadata Set for event pages to
'/types/calendar event'.
Try placing an event page within the 'January' folder. Make sure
all of the fields are filled out. Events will not show up in the
calendar if they are not given display-names or titles.
*NOTE: The calendar month stylesheet was created
for demonstration purposes only. This stylesheet can be modified to
suit the layout of your site. However, it is recommended that you
make a backup copy of this XSL stylesheet before making any changes
to it.