WCM Placeholder Tag

 

+
Search Tips   |   Advanced Search

 

Overview

The Placeholder tag is used to reference a Placeholder within a Component Design. For example, the following could be part of the Component Design for each matching Content form of a Menu component:

<a href='<placeholder tag="href"/>'>

    <AptrixCmpnt context="autoFill" 
                 key="ContentTitle" 
                 type="content"/>

</a><br>

The syntax for the placeholder tag is...

<placeholder tag=" " start=" " end=" " />

...where...

<placeholder Opens a Placeholder Tag.
tag=" " Determines which placeholder is being referenced:

  • Name
  • Href
  • Namelink
  • Sitepath
  • Idnum
  • Listnum
  • Treenum
  • Paddedtreenum
  • Depth
start=" "

end=" "

The Start and End attributes are used to wrap the data returned by an WCM Tag within other tags, such as HTML. These attributes are not mandatory.
/> Closes a WCM Tag.

 

Placeholder Types

Name Display the name of the Site Area or Content being retrieved in a Menu or Navigator
HREF Inserts a link to the Page of the Site Area or Content being retrieved in a Menu or Navigator
NameLink Combination of the Name and HREF tags. It assembles a complete link based on the Name of the item being returned.
sitepath Similar to the HREF placeholder except that it only display the Site path of an items URL.

E.g., an HREF placeholder tag may give you:

    /ILWWCM/connect/metaorg/intranet/press+releases.

Whereas the site path will give you:

  • /metaorg/intranet/press+releases.
Idnum Return the hexadecimal id value of an item. Can be used when creating static URLs in Menus and Navigators. I.e., You could hard-code the Site/SiteArea path in a Menu or Navigator component design and use the Idnum for each Content item being displayed. Allows one to display Content with a different Presentation Template (e.g. a printer friendly Presentation Template) or use different security settings.
Listnum Displays a single column list of numbered links:

  1. First.
  2. Second.
  3. Third.
Treenum Displays a hierarchical numbered list:

1.0
1.1
1.2
2.0
2.1
2.2

Paddedtreenum Similar to Treenum, but the numbers are padded:

0001
00010001
00010002
000100020001
000100020002

Depth Displays the depth of the currently processed node (in a Navigator or Menu) as a number. A top-level node has a depth of 1.

Parent topic: WCM Tags.


IBM Workplace WCM - V5.1.0.1 -

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.