Application Express User's Guide > Controlling Page Layout and... > Customizing Templates > Calendar Templates
Calendar Templates |
Previous |
Next |
Calendar templates control the appearance and placement of a calendar. Calendar templates frequently use HTML tables to arrange dates. You place calendar attributes using substitution strings such as #DD#
and #MONTH#
. A list of supported substitution strings appears on the right side of the Calendar Template Attributes page. Note that template substitution strings must be in uppercase letters and begin and end with a number sign (#).
This section describes specific sections of the Calendar Template page.
Name identifies the name of the template. Theme indicates the theme to which the template is a member.
Template Class identifies a specific use for the template. When you switch to a new theme, all templates in one theme are mapped to corresponding templates in another theme. Application Builder accomplishes this template mapping through the assignment of a template class.
Use Template Subscription to apply an existing template to the current application. When you select an existing template, you become a subscriber to that template.
To load a new copy of a master template, click Refresh.
In Month Title Format enter the format for the monthly title that appears at the top of each month. This is the first part of a calendar which prints on the page. For example:
<table> <tr> <td>#MONTH#</td> </tr>
In Day of Week Format enter the format for the week day names which displays as the column header for that day of the week. For example:
<th width="14%">#IDAY#</th>
In Month Open Format enter HTML to be used to open a month. This displays immediately after the Month Title Format. Typically this attribute contains an HTML tag that functions as a container (such as a table). For example:
<table border="0" cellpadding="0" cellspacing="0" class="htmldbRowWithBorders" width="100%"><tr>
In Close Month Format enter HTML to be used to close a month. Since this is the last part printed, this attribute should contain HTML that closes the HTML tags used in the Month Open Format. For example:
</table>
Enter HTML to open and close a week.
In Week Open Format enter HTML to be used to open a week. This is printed for each week. Typically this attribute contains an HTML tag which functions as a container. For example:
<tr>
In Week Close Format enter HTML to be used to close the week. Since this is the last part printed, this attribute should contain HTML that closes HTML tags used in Week Open Format.
</tr>
Enter HTML to format the days that occur during the work week (that is, Monday through Friday).
In Day Title Format enter HTML to be used the title of each day. This title displays after the Day Open Format. For example:
#DD#
In Day Open Format enter HTML to used to open a day. This displays on each day in the calendar. Typically this attribute contains an HTML tag that functions as a container. For example:
<td>
In Day Close Format enter HTML used to close a day. Since this is the last part printed, this attribute should close any HTML tags used in Day Open Format. For example:
</td>
In Today Open Format enter HTML used to open today. Typically this attribute contains an HTML tag which functions as a container (such as <td>
) and would be different from the Day Open Format. For example:
<td style="background:#c5d5c5">
A non-day is not part of the current month. For example, suppose the first of a month is a Monday, but the week starts on a Sunday. Because Sunday is not part of the current month, Sunday would be a non-day. Use these attributes to format non-days.
In Non-Day Title Format enter a non-day title. For example:
#DD#
In Non-Day Open Format enter HTML to open a non-day. Typically this attribute would contain an HTML tag that functions as a container. For example:
<td>
In Non-Day Close Format enter HTML to close a non-day. Typically this attribute would contain an HTML tag that closes the tag used in Non-Day Open Format. For example:
</td>
Enter HTML used to format days that occur on the weekend. Include substitution strings to include dynamic content. To view a list of supported substitution strings, see the Substitution Strings list on the right side of the Calendar Template page.
In Weekend Title Format, enter HTML to be used for a day occurring on a weekend. For example:
#DD#
In Weekend Open Format, enter HTML to open a day which is on a weekend. Typically this attribute would contain an HTML tag that functions as a container. For example:
<td>
In Weekend Close Format, enter HTML to close a day which is in a weekend. Since this is the last part printed, this attribute should close any HTML tags used in Weekend Open Format.For example:
</td>