
As the administrator, you must perform the following configuration steps, in order to be able to use the Sponsored Links function.
Standard Use of the Sponsored Links Component
You carry out the following steps:
If required, you can also use permissions to limit the visibility of the sponsored links to specific users.
ID = sponsored_links
Name = Sponsored Links Index
Group = No entry necessary
Crawler Parameter = No entry necessary
Service = TREX Search
What to Index = Documents
Name = searchhidden
Value = true
Choose Add and then Create Index.
As soon as a sponsored link has been created in this folder, it is indexed automatically and can be displayed in the search results list.
If you do not want to create the folder in the /documents repository, you must make sure that the Send Events parameter is activated in the repository used.
Parameters for the SponsoredLinksComponent component
| Parameter | Required | Description |
|---|---|---|
|
Indexes |
Yes |
Enter the ID of the index created in step two. If you are using more than one index, separate your entries with a semi-colon. |
|
Style |
No |
Specify a design that the component is displayed in. The available specifications are HTMLB styles that can be maintained using the style editor. Possible values are: NONE, SAPCOLOR, PRIMARYCOLOR, SECONDARYCOLOR, SECONDARYBOX, SECONDARYBOXCOLOR If you do not specify a style, the default setting is SECONDARYBOXCOLOR. |
|
MinWidth |
No |
Minimum width of the component in pixels. If you do not specify this parameter, the system automatically uses the value 200. Note: The name of a sponsored link always appears without a line break. |
|
MaxNoLinks |
No |
Maximum number of sponsored links to be displayed. If you do not specify this parameter, the system automatically uses the value 10. |
For example:
Parameters = Indexes=sponsored_links, Style=NONE, MinWidth=200
Components = SearchHeaderComponent,My_SponsoredLinksComponent_1,Pager(alignCenter),this,Pager(alignCenter)
You can use modifiers to fix the position of the components used in the search results list. For example, to have the sponsored links appear on the right-hand side of the search results list, you must enter the following:
Components = SearchHeaderComponent([1;1-2]),Pager([2;1]/alignCenter),this([3;1]),My_SponsoredLinksComponent_1([3;2]),Pager([4;1])/alignCenter)
For more information about the syntax of the modifiers that are used to display the search components in a table, see Displaying Properties .
Command List = [...],edit_xml_forms_properties
In the context menu for a document, you can now choose the command Add To Sponsored Links.
During configuration of the command edit_xml_forms_properties, you enter the path to the folder /documents/Sponsored Links and the associated XML forms project name in the Parameters field as a fixed value. If you are not using the default path and the default XML form, you must change the parameters of the command accordingly.
Command List = change_link, rename, OrderedListGroup, move, edit_xml_forms_properties, ClipboardCommandGroup(expanded), SingleDeleteGroup(expanded), SingleDetailsGroup(expanded)
In the context menu for the portal favorites, you can now choose the command Add To Sponsored Links.
Optional: Reuse of the Sponsored Links Component
In the search results list, you can not only use a component to display sponsored links, you can also use several components that each contain different links. For example, you can display one component for displaying internal news above the search results list and another component on the right-hand side of the screen that contains external links.
To do this, you must work through the steps listed above again:
Components = SearchHeaderComponent([1;1-2]),My_SponsoredLinksComponent_2([2;1-2]/alignleft),Pager([3;1-2]/alignCenter),this([4;1]),My_SponsoredLinksComponent_1([4;2]),Pager([5;1-2])/alignCenter)
You can now create different sponsored links in each folder, depending on the link content.
You have worked through all necessary configuration steps and can now use the sponsored links function. For more information, see Creating and Managing Sponsored Links .