Documentation Center

Component links

Component links are created in a Component as a Component Link field, or as part of a Format Area. Where your Component links ends up pointing to on the published Web page depends on a number of different rules.

Component Link
A content author can set the value of a Component field of type Component Link. The default Template Building Blocks render this as a hyperlink to a Web page containing the published Component, or no link if the Component was never published.
Format Area
In a Component field of type Format Area, a content author can click the Hyperlink button, select Component as a link type, and pick a Component (that is not a Multimedia Component) to link to. The default template building blocks render this as a hyperlink to a Web page containing the published Component, or no link if the Component was never published.
Template code
You create a component link by using the getLinkAsString method in the ComponentLink class in Template Building Block code and including this code in a Component Template or Page Template.