WCM Element tag - Displaying Component ID of Component Reference Element

We use the [Element] tags to display the content elements information in design section of components. Following option will display actual component id of the referenced library component instead of element ID.

[Element context="autofill" type="content" key="Banner-Image " format="id"]


format="id" option will display actual component id of attached Banner-Image

Scenario :
1.      Authoring template (AT-test) has the component reference element
2.      Author created content with authoring template (AT-test) and referred the image component for the component reference element from the library components
3.      Menu/Nav component iterating through contents created using AT-Test but want display the component of actual image component ID instead of element id.

This is useful option but infocenter missing this in documentation

Reference:
http://www-01.ibm.com/support/knowledgecenter/SS3JLV_8.0.0/wcm/wcm_dev_referencing_elements.html?lang=en

No comments:

Post a Comment