Configuration for links to a data record (contentLink)
The two diagrams on the left-hand side show an example of a screen form for a link to a data record.
The screen form is divided into two tabs:
- The first tab, labelled with "Content link" in the diagram, is structured analogous to the internal link
(cf. Figure: "contentLink" (1) screen form example). - The second tab is used for data search within the Content and Site Store
(cf. Figure: "contentLink" (2) screen form example).
The two diagrams show all the possible input fields for this type of link.
If an explicit configuration is not given for an instance of a data link, as a default all components are displayed with their default values.
The template developer can configure each input field project-specifically by giving the "name" attribute in the <CMS_PARAM> tag (cf. Chapter Configuration). The attribute names, through which the respective input fields or selection lists can be influenced, are displayed in the diagram in italics. (To enlarge, please click the diagram!)
The following variables an be used for all instances of the standard "contentLink" link type for configuring links to a data record (from the Content Store).
Special "data link" (content) variables (link type: contentLink)
Field name | Description |
---|---|
text | The "text" field is an input component for entering a link text. Any text can be entered in the field which is to be linked. The standard behaviour of the input component can be changed via the configuration. |
comment | The "comment" field is an input component for entering a comment. The editor can enter any comment text in the input field which can be displayed, for example, as a "tooltip". The standard behaviour of the input component can be changed via the configuration. |
linktemplate: | The "linktemplate" field is a selection list for selecting a link template. As a default the selection list contains all link templates of the current instance of the link template type. (Explication: see Introduction to Link Templates) |
mediaref | The "mediaref" field is an input component for the selection of a media object to be linked from the project's Media Store. The standard behaviour of the input component can be changed via the configuration of the input component. |
target | The "target" field is an input component for selection of a target frame for the link, for example in the current window or in a popup window. The link is opened in the selected target frame. |
language | The "language" field is an input component for selecting a language for the link. As a default, all the project's languages are displayed in the selection list. |
remotemedia | The "remotemedia" field defines which remote project is available for selection of a media object from the Media Store. The symbolic name of the remote project must be given for the attribute value. |
Special "data search" variables (link type: contentLink)
Field name | Description |
---|---|
contentSource | The contentSource field is a selection list for selecting a data source from the project's Content Store. |
contentSources | The parameter contentSources restricts the selection set of the data sources, i.e. only the data sources defined here can be selected in the field contentSource in the selection dialog. |
contentID | Click the anchor symbol to open a window with the table view of the selected data source (content). |
sitestoreref | The anchor symbol can be used to select a page or folder from the Site Store to be used as the starting point for the search for the given data record. |
sectiontemplate | One table in a schema of the Template Store can be represented by more than one table template. |