DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
EXT: rgnewslinks¶
Author: | Kasper Skårhøj |
---|---|
Created: | 2002-11-01T00:32:00 |
Changed by: | Georg Ringer |
Changed: | 2007-04-03T20:06:48 |
Author: | Georg Ringer |
Email: | http://www.just2b.com/ |
Info 3: | |
Info 4: |
EXT: rgnewslinks¶
Extension Key: rgnewslinks
Copyright 2000-2002, Georg Ringer, <http://www.just2b.com/>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.com
Table of Contents¶
EXT: rgnewslinks 1
Introduction 1
What does it do? 1
Screenshots 1
Sponsorship 1
Configuration 2
Reference 2
Example 2
To-Do list 2
Changelog 3
Introduction¶
What does it do?¶
This extensions extends the single view of tt_news for a previous & next link to the previous and next news record. The extension respects chosen categories, starting point,...
Important: If you have different List/Latest/... views with only one page to show the single record the extension can only handle one configuration. Solution: You need different single pages!
Screenshots¶
You can see the 2 links, both cropped with the functions of stdWrap and a pagebrowser.
Screenshot of the extension.
Sponsorship¶
Many thanks to the company hostingschmiede.de ( http://www.hosting- schmiede.de/ ) for the sponsorship to make the extension available in TER.
Configuration¶
Install the extension.
Place the markers ###PREV_LINK### , ###NEXT_LINK### & ###PAGEBROWSER### in the section of<!-- ###TEMPLATE_SINGLE### -->
Configure the Plugin of the single view like in LIST/LATEST: Set the category-handling, starting-point and the ordering and everything else you want.
Change TS settings if you want to.
Reference¶
- Possible subsections: Reference (TypoScript)
defaultPrevText¶
Property
defaultPrevText
Data type
string
Description
Default value if there is no link (1 st record chosen)
Default
defaultNextText¶
Property
defaultNextText
Data type
string
Description
Default value if there is no link (last ecord chosen)
Default
loop¶
Property
loop
Data type
boolean
Description
If activated, the previous link of the first record links to the last record and the next link of the last record links to the first record
Default
1
prevLink¶
Property
prevLink
Data type
stdWrap
Description
stdWrap functions for the whole link of link to previous record. Good to wrap something around which shouldn't get linked
Default
wrap = « |
nextLink¶
Property
nextLink
Data type
stdWrap
Description
stdWrap functions for the whole link of link to next record.Good to wrap something around which shouldn't get linked
Default
wrap = | »
prevLinkText¶
Property
prevLinkText
Data type
stdWrap
Description
stdWrap function for the linktext of link to previous record.This can be used to crop the text or override it with a static text. Both can be seen in the following example
plugin.tt_news.rgnewslinks {
# Crop
prevLinkText.crop = 25|...|1
# Override
#prevLinkText.override = Linktext
}
Take a look at stdWrap in the TsRef to see everything!
Default
crop = 25|...|1
nextLinkText¶
Property
nextLinkText
Data type
stdWrap
Description
stdWrap function for the linktext of link to next record.
Default
crop = 25|...|1
[tsref:plugin.tt_news.rgnewslinks]
rgnewslinksPageBrowser¶
Property
rgnewslinksPageBrowser
Data type
string
Description
The Text of the page browser. Change or add other languages like you want with:
plugin.tt_news._LOCAL_LANG.de.rgnewslinksPageBrowser = Datensatz %s von %s insgesamt.
Default
Default: This is record %s out of %s.
DE: Datensatz %s von %s insgesamt.
[tsref:plugin.tt_news._LOCAL_LANG. LL-KEY ]
Example¶
Take a look at the ext_typoscript_setup.txt in the extension directory
((generated))¶
You like my extension?¶
Visit my page for a small (paypal) donation ( http://www.just2b.com/meintypo3.html ), send me something nice through my whishlist of amazon or just send me a mail with nice words and a hug. I will appreciate it!
Known problems¶
- The extension only works correct with one single view for every other views.
- No real problems yet
To-Do list¶
- Code Improvement
- Check for multilanguage support
- Send me bugs (maybe including also the bugfix)
Changelog¶
1.0.4: Loop-Feature
1.0.3: [BUGFIX] Sorting problem
1.0.2: Pagebrowser
1.0.1: Bugfix with caching. Thanks to Markus for pointing & Steffen for solving
1.0.0: Initial upload
EXT: rgnewslinks - 3