Using Advanced Components, you create extension modules to allow web scripts to replace or extend from Sub-Components.
- Use Surfbug to target in which component your extension could appear (/share/page/surfBugStatus)
-
Create a extension module definition (xml) in which to configure your new
Sub-Component.
-
Define where you want your extension to appear, using the scope,
region-id, and the source id. If the source-id contains a site name or
user name parameter, replace the absolute value with {user} or
{site}.
Use the index to control the display order in relation to the parent Component, such as before, after, replace. If no index or the same index is specified, the Sub-Components display in the order the models are deployed.
Built in Share Components do not specify and index and default to 50. You can override this.
-
Identify when it will appear, using Evaluators. This is optional.
Evaluators are used to change the behavior if certain conditions are true. You use out of the box Evaluators, such as Site Name and Site Preset.
- site.component.evaluator (Site Name)
- preset.component.evaluator (Site Preset - such as RM)
- config.component.evaluator
- equals.component.evalator
- portlet.component.evaluator
- Create what will display with a web script.
-
Define where you want your extension to appear, using the scope,
region-id, and the source id. If the source-id contains a site name or
user name parameter, replace the absolute value with {user} or
{site}.
- Deploy the extension using Module Deployment Tool (/share/page/modules/deploy).