Documentation Center

TCDL API Commands

<tcdl:Comment>, <tcdl:ContentHeader>, <tcdl:ContextProperty>, <tcdl:Dependency>, and <tcdl:PositionMarker>, , are API commands for Web applications specific to the TCDL intermediate language.

Comment
<tcdl:Comment>

Description: Contains developer comments. The contents of this tag are completely ignored, and the entire tag is removed when TCDL is transformed into the actual Web application language.

Attributes: none

Content Header
<tcdl:ContentHeader>

Description: A tag that is required at the top of a file that contains TCDL tags.

Attributes:

Attribute nameDescription
tcmURIThe Content Manager URI (unique identifier) of the item being processed.
trackedtrue if this item is being tracked for Profiling, false if it is not.
Context Property
<tcdl:ContextProperty>

Description: Either specifies a property to insert at this location in the file (if the value attributed is omitted), or sets the value of a property (if value is specified).

Attributes:

Attribute nameDescription
nameThe name of the property to set or insert
valueOptionally, the value to which the property should be set.
Dependency
<tcdl:Dependency>

Description: Adds a dependency to a dependency section. When the section is set to tcdl.directives, you can use this tag to set page directives. Refer to Positioning script fragments on the webpage for more information. This tag can also be used to remove a dependency from a section.

Attributes:

Attribute nameDescription
sectionThe name of the dependency section to add this dependency to
valueThe dependency value to add to the dependency section
uniqueA Boolean value enforcing uniqueness of this value in the section. If set to true, the value is only added to the section if it is not already present.
removeA Boolean value that, if set to true, causes the specified value to be removed from the section, rather than added to it.
Position Marker
<tcdl:PositionMarker>

Description: Insert the contents of a section, that is, a set of dependencies at this location in the file. Refer to Positioning script fragments on the webpage for more information.

Attributes:

Attribute nameDescription
sectionA section, that is, a set of dependencies (refer to the Dependency element for details), to insert as a scripting fragment.