Element's are fields (and there corresponding values) that you created when you defined an authoring template or added an element to a site or site area. The Element tag is reference an element within a presentation template or element design.
<Element type=" " context=" " name=" " key=" " format=" " link=" " separator=" " htmlencode=" " awareness=" " start=" " end=" " />
<Element | Opens the tag. |
type=" " | This determines where the element is being referenced from. Either "content", "sitearea" or "site". |
context=" " | This determines which content item or site area is being referenced.
|
name=" " | Enter the name and library of the item the element is being referenced from. For example, name="library/item". To use the library specified in the URL of the current page, use name="./item". Note:
|
key=" " | This is the name of this element being referenced. |
format=" " | This parameter is optional and can only be used with some component types: When referencing an image component:
|
link=" " | The link parameter is used to define the type of link created by the element tag:link="default"A standard link to an element is created. link="path"Contextual path linking will be used when rendering this element. link="contextual"Contextual content linking will be used when rendering this element. If not applicable, then contextual path linking is used. Note: Contextual linking:*Contextual linking is used so that when content is linked from another site, the link will be rendered relative to the current site if possible. It can only be used if *context=current or context=autofill. |
separator=" " | This only used when referencing an option selection or user selection element. It is used to define what text or code will be rendered between each selection displayed in an option selection or user selection element. For example, to add a line break between each selection, you would use separator="<br>" . If not defined, a comma will be placed between each selection when rendered. |
htmlencode=" " | If htmlencode="true" the reserved HTML characters in text, short text and option selection elements will be converted into character entities. For example, '<' will be converted to '<'. This is useful if you would like to prevent users adding malicious code, or if you want to prevent users changing the look and feel of their text using HTML.If not specified, the default setting specified in the WCMConfigService.properties file located in the was_profile_root/PortalServer/wcm/config/ directory is used. By default, this is set to "true":cmpnt.htmlEncodeDefault=true |
awareness=" " | If awareness="true" then user names are displayed using the people awareness features. These features displays user names as hyperlinks that allow users to contact people with whom they might want to work. Wherever person links appear, users can click the link to display a menu of actions for collaborating (contacting and working) with the person named by the link. If you, as administrator, have also configured an IBM® Lotus® Sametime® server to work with WebSphere Portal, person links indicate whether a person is active, away, offline, or in a Do Not Disturb state.People awareness will only work in content rendered using either a local or remote rendering portlet. If not specified, then awareness="false" and people awareness is not used. |
start=" "end=" " | The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory. |
/> | This closes the tag. |
WCM Component Tags
The Component tag is used to reference the content of a component within a presentation template or element design.<Component name=" " context="autofill" format=" " separator=" " compute=" " htmlencode=" " awareness=" " start=" " end=" " />
<Component | Opens a library component tag. |
name=" " | Enter the name and library of the component being referenced. For example, name="library/item". To use the library specified in the URL of the current page, use name="./item".Note: If you specify name="./item", the library name will not appear in your presentation template or element design. The actual path will not be resolved until the item is rendered.The "name" parameter is not used if context="autofill". |
context="autofill" | This parameter is only used when referencing a Component tag within a Personalization element design to display the results of a Personalization rule that searches for components. |
start=" "end=" " | The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory. |
format=" " | This parameter is optional and can only be used with some component types: When referencing an image component:
|
compute=" " | This is only applicable to menu, navigator and taxonomy components. You specify compute="always" when you reference some JSP code within a component design, and you want that code to be run separately on each result returned by a menu, navigator and taxonomy component.For example, if a menu referenced JSP code that used the public DocumentId getCurrentResultId(); method, you would use compute="always" to make the JSP code run separately in every result returned by the menu. If not specified, then compute="once" is used which is the default method for delivering the results of menu, navigator and taxonomy components. |
htmlencode=" " | If htmlencode="true" the reserved HTML characters in text and short text components will be converted into character entities. For example, '<' will be converted to '<'. This is useful if you would like to prevent users adding malicious code, or if you want to prevent users changing the look and feel of their text using HTML.If not specified, the default setting specified in the WCMConfigService.properties file. By default, this is set to "true":cmpnt.htmlEncodeDefault=true |
awareness=" " | If awareness="true" then user names are displayed using the people awareness features. These features displays user names as hyperlinks that allow users to contact people with whom they might want to work. Wherever person links appear, users can click the link to display a menu of actions for collaborating (contacting and working) with the person named by the link. If you, as administrator, have also configured an IBM® Lotus® Sametime® server to work with WebSphere Portal, person links indicate whether a person is active, away, offline, or in a Do Not Disturb state.People awareness will only work in content rendered using either a local or remote rendering portlet. If not specified, then awareness="false" and people awareness is not used. |
separator=" " | This only used when referencing a user selection component. It is used to define what text or code will be rendered between each selection. For example, to add a line break between each selection, you would use separator="<br>" . If not defined, a comma will be placed between each selection when rendered. |
/> | This closes the tag. |
WCM Placeholder tags
You use a placeholder tag to display metadata of an item. This is different from the<placeholder tag=" " htmlencode=" " start=" " end=" " />
<placeholder | Opens a Placeholder Tag. |
tag=" " | Determines which placeholder is being referenced:
|
htmlencode=" " | If htmlencode="true" the reserved HTML characters in the source will be converted into character entities. For example, '<' will be converted to '<'. This is useful if you would like to prevent users adding malicious code, or if you want to prevent users changing the look and feel of their text using HTML.If not specified, the default setting specified in the WCMConfigService.properties file located in the was_profile_root/PortalServer/wcm/config/ directory is used. By default, this is set to "true":cmpnt.htmlEncodeDefault=true |
start=" "end=" " | The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory. |
/> | This closes the tag. |
Placeholder types
Name | This is used to display the name of the site area or content being retrieved in a menu or navigator. This can also be used when you create a user name component, where you can add a placeholder tag in the design and specify tag="name" to render the name of the user. |
Title | This is used to display the title of the site area or content being retrieved in a menu or navigator. |
dn | This is for when you create a user name component. You can add a placeholder tag in the design and specify tag="dn" to render the distinguished name of the user. |
HREF | This inserts a link to the page of the site area or content being retrieved in a menu or navigator. |
noprefixhref | The URLs generated by "HREF" parameter will be fully qualified when viewed through a portal. To generate URLs with no prefix, use the "noprefixhref" parameter instead of the "HREF" parameter. |
NameLink | This is a combination of the name and HREF tags. It assembles a complete link based on the name of the item being returned. |
noprefixnameLink | The URLs generated by "nameLink" parameter will be fully qualified when viewed through a portal. To generate URLs with no prefix, use the "noprefixnameLink" parameter instead of the "nameLink" parameter. |
TitleLink | This is a combination of the title and HREF tags. It assembles a complete link based on the title of the item being returned. |
noprefixtitleLink | The URLs generated by "titleLink" parameter will be fully qualified when viewed through a portal. To generate URLs with no prefix, use the "noprefixtitleLink" parameter instead of the "titleLink" parameter. |
Note: Using a URLCmpnt tag.*The *URLCmpnt tag is used to generate a URL to a site, site area or content item and can be used as an alternative to a placeholder when generating a URL. This is particularly useful when creating links to Web content displayed within rendering portlets. | |
sitepath | This is similar to the HREF placeholder except that it only display the site path of an items URL.For example, an HREF placeholder tag displaying a content item may give you:
|
Idnum | This returns the hexadecimal id value of an item. This can be used when creating static URLs in menus and navigators. You could hard-code the site/site area path in a menu or navigator element design and use the Idnum for each content item being displayed. This would allow you to display content with a different presentation template (for example, a printer friendly presentation template) or use different security settings. |
Listnum | Displays a single column list of numbered links:
|
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. |
No comments:
Post a Comment