Documentation Center

ComponentLink

<ComponentLink> returns a link to a Web page containing the specified Component, if the link can be resolved. <ComponentLink> is used in Dynamic Linking and is for ASP.NET and JSP only.

<ComponentLink>
LanguageCommand
ASP.NET Server Control<tridion:ComponentLink runat="server">
JSP Custom Tag<tridion:ComponentLink>
Attributes:
Attribute nameDescription
PageURIThe Content Manager URI (unique identifier) of the Page on which to resolve this link
ComponentURIThe Content Manager URI (unique identifier) of the Component to link to
TemplateURIThe Content Manager URI (unique identifier) of a Component Template that cannot be used by the Component Presentation to link to
AddAnchorBoolean to indicate whether to include an anchor with the link
LinkTextThe text to display as link text. If left empty, Dynamic link resolving uses the information in a child element of this Server Control as the clickable item (say, an <img> tag)
LinkAttributesAdditional attributes to add to the link
TextOnFailA Boolean parameter indicating whether to display the link (or a child element, if used) if the link cannot be resolved