section (Domino DTD)

Represents a paragraph that can be collapsed or expanded. For further details on sections, see "Creating sections in Application Development with Domino Designer.

Containment Hierarchy

Contained by: %richtext.block;,

Contains: <sectiontitle>, <code>, %richtext.block;

Syntax

<!ELEMENT section ( sectiontitle, code?, (%richtext.block;)* )>

Content

sectiontitle, code?, (%richtext.block;)*

Contains the title of the section, an optional piece of code, followed by any number of the contents of the %richtext.block; entity.

Attributes

<!ATTLIST section

onread

%tokens;

""

onedit

%tokens;

""

onpreview

%tokens;

""

onprint

%tokens;

""

expanded

%boolean;

"false"

showastext

%boolean;

"false"

accessfieldkind

(%field.kinds;)

#IMPLIED

accessfieldname

%string;

#IMPLIED

>

accessfieldkind

Specifies whether a field in a controlled-access section is editable or computed. See the %field.kinds; entity definition for full list of options.

accessfieldname

Name of an access list field in a controlled-access section (Release 3 compatible).

expanded

Indicates whether the current section is expanded.

onedit

Token from %section.colexp.tokens; entity that is used when editing the section.

onpreview

Token from %section.colexp.tokens; entity that is used when previewing the section.

onprint

Token from %section.colexp.tokens; entity that is used when printing the section.

onread

Token from %section.colexp.tokens;entity that is used when reading the section.

showastext

Shows the section as text when not previewing.

Defined entity for <section> element

The %section.colexp.tokens; entity defines the tokens as actions for auto-expanding and auto-collapsing a section.

Syntax:

<!ENTITY % section.colexp.tokens "expand | collapse | editorexpand | editorcollapse">

collapse

Collapses the section.

editorcollapse

Collapses a Controlled Access section when accessed by an editor. An editor of a controlled access section is created by the designer to restrict access to a section on a form. Adding restricted sections is useful in workflow applications, for instance, in which an employee's manager must authorize an employee's expense. The section can be set to collapse when accessed by non-editors. For more details, see the topic Restricting who can access a section of a document.

editorexpand

Expands a Controlled Access section when accessed by an editor. See the editorcollapse option for details on editors.

expand

Expands the section.