tt_news
1.4.
1.5. Administration
1.5.1. Link Configuration
There are several kinds of links in a news record. The table below gives you an overview which parameters will affect which link. In the graphic you see the possible links in a news "LATEST" element. The links in the "LIST" elements work exactly like those in "LATEST" elements. The links in the "AMENU" are configured with the same parameters as the "Archive Link" (4). The Links in the "SINGLE" view are explained after this.
|
Link Description: |
Link-Configuration: |
Link-Configuration in Framesets: |
|---|---|---|
|
|
No special settings required
This will open typo3.org in the same window:
|
|
|
|
No special settings required |
Required Settings: The global target for all links has to be defined in your main template (e.g.: PAGE_TARGET = page).
Optional: If you want the news links to internal pages point to another frame, you can override the global target with this setting.
plugin.tt_news {
pageTypoLink.target = _top
}
|
|
These links are inserted to the HTML template by the ###LINK_ITEM### markers.
Example: <!--###LINK_ITEM###--> ###NEWS_IMAGE### <!--###LINK_ITEM###--> |
Required Settings: plugin.tt_news {
singlePid = 132
}
|
Required Settings: plugin.tt_news {
singlePid = 465
}
|
|
Category link: Type "shortcut" This link points to a page in the same pagetree. Example: plugin.tt_news {
catImageMode = 2
}
|
No special settings required |
Required Settings:
|
|
Category link: Type "category-selector" Example: plugin.tt_news {
catTextMode = 3
}
|
No special settings required |
Required Settings: If the catselector links should point to the current frame, there is no special setting required.
If the catselector links should point to another frame, add this to your TS setup: plugin.tt_news {
itemLinkTarget = page
catSelectorTargetPid = 78
}
with this setting the catselector links point to page id=78 in the frame named "page". |
|
- used in the "LATEST" element (example html-template) for the link that points to the page with the archive listing (marker: ###GOTOARCHIVE###) |
Required Settings: plugin.tt_news {
archiveTypoLink.parameter = 34
}
In the example the "Archive Link" in the LATEST element points to the page with id=34. This page contains an "AMENU" content-element. The links in the "AMENU" element are configured with the same settings, but those links expect a page with a "LIST" element as target. That page is configured to list only archived newsitems. See section "The Archive" for more information about linking the "AMENU" to other news content elements or pages. |
|
|
Pagebrowser links (not in the graphic)
|
No special settings required. The pagebrowser links in "LIST" view will point to the global "PAGE_TARGET" if one is defined in the constants.
|
|
Links in the "SINGLE" view
Some of the link-types in the single view are configured with the same parameters as shown in the table above:
-
Links to internal pages (see -> getRelatedCObject)
-
Links to external URLs (see -> getRelatedCObject)
-
Category-links that point to category-shortcuts (2) (the catselector mode will not work - and does not make sense - in single view)
|
Link Description: |
Link-Configuration: |
Link-Configuration in Framesets: |
|---|---|---|
|
|
No special settings required (see -> getRelatedCObject ) |
|
|
|
The links to files are configured with the "filelink" object. (see -> newsFiles) |
|
|
|
The news "Links" are parsed through the "general_stdWrap". (see -> general_stdWrap)
Hint:
you can add "typolinks" to this field: <LINK http://mysite.com _blank>open mysite</LINK>
|
|
|
|
This links points to the last "LIST" or "LATEST" view. Usually the page that linked to the "SINGLE" view. (see -> backPid)
|
|
|
|
No special settings required, in the default configuration these links point to a javascript that opens the image in a pop-up window. (see -> imageWrapIfAny ) |
|
|
Email link Text Links in news bodytext |
No special settings required This links use the global settings for links |
|
|
Search page id (not in the graphic)
|
If you want the search button in the "SEARCH" content element point to another page than the current you can define this page as "searchPid". (see -> searchPid ) |
|

