public interface ComponentLinkListener extends LinkListener
Modifier and Type | Method and Description |
---|---|
void |
componentLinkNotification(int publicationId,
int sourcePageId,
int targetComponentId,
int excludeComponentTemplateId,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
boolean showAnchor,
Link returnLink)
Implement this method to process the parameters passed.
|
void |
dynamicComponentLinkNotification(int publicationId,
int sourcePageId,
int targetComponentId,
int excludeComponentTemplateId,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
String parameters,
Link returnLink)
Implement this method to process the parameters passed.
|
configure
void componentLinkNotification(int publicationId, int sourcePageId, int targetComponentId, int excludeComponentTemplateId, String linkTagAttributes, String linkText, boolean showTextOnFail, boolean showAnchor, Link returnLink)
com.tridion.linking.Linking
class will pass
all ComponentLinks which the system tries to resolve to the configured class, which will then be processed in
the configured
class.publicationId
- The Id of the publication which the Component the link is trying to resolve
to is in.sourcePageId
- The Id of the page that you are linking from.targetComponentId
- The Id of the Component you wish to try to resolve a link to.excludeComponentTemplateId
- The Id of the Component Template which will be excluded from link
resolution, and which
will be used to exclude other templates based on priority.linkTagAttributes
- Attributes to include in the link.linkText
- The text to be displayed for the link.showTextOnFail
- Indicates if the linkText needs to be returned if no link can be resolved.showAnchor
- The anchor on the page where the link has to be pointing to.returnLink
- The Link
resolved by the ComponentLink
class.void dynamicComponentLinkNotification(int publicationId, int sourcePageId, int targetComponentId, int excludeComponentTemplateId, String linkTagAttributes, String linkText, boolean showTextOnFail, String parameters, Link returnLink)
com.tridion.linking.Linking
class will pass
all DynamicComponentLinks which the system tries to resolve to the configured class, which will then be
processed in the configured
class.publicationId
- The Id of the publication which the page the returnLink is trying to resolve
to is in.sourcePageId
- The Id of the page the returnLink is trying to resolve to.targetComponentId
- The Id of the Component you wish to try to resolve a returnLink to.excludeComponentTemplateId
- The Id of the Component Template to be used for DCP assembly.linkTagAttributes
- Attributes to include in the returnLink.linkText
- The text to be displayed for the returnLink.showTextOnFail
- Indicates if the linkText needs to be returned if no returnLink can be
resolved.parameters
- HTTP parameters to be appended to the URL.returnLink
- The Link
resolved by the DynamicComponentLink
class.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries