.. You may want to use the usual include line. Uncomment and adjust the path.
.. include:: ../Includes.txt
================
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:
EXT: rgnewslinks
================
Extension Key: **rgnewslinks**
Copyright 2000-2002, Georg Ringer,
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:
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:
Introduction
------------
.. _What-does-it-do:
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:
Screenshots
^^^^^^^^^^^
You can see the 2 links, both cropped with the functions of stdWrap
and a pagebrowser.
|img-1| Screenshot of the extension.
.. _Sponsorship:
Sponsorship
^^^^^^^^^^^
Many thanks to the company hostingschmiede.de ( `http://www.hosting-
schmiede.de/ `_ ) for the sponsorship
to make the extension available in TER.
.. _Configuration:
Configuration
-------------
Install the extension.
Place the markers **###PREV\_LINK###** , **###NEXT\_LINK###** &
**###PAGEBROWSER###** in the section of
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:
Reference
^^^^^^^^^
\- Possible subsections: Reference (TypoScript)
.. ### BEGIN~OF~TABLE ###
.. _defaultPrevText:
defaultPrevText
"""""""""""""""
.. container:: table-row
Property
defaultPrevText
Data type
string
Description
Default value if there is no link (1 :sup:`st` record chosen)
Default
.. _defaultNextText:
defaultNextText
"""""""""""""""
.. container:: table-row
Property
defaultNextText
Data type
string
Description
Default value if there is no link (last ecord chosen)
Default
.. _loop:
loop
""""
.. container:: table-row
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:
prevLink
""""""""
.. container:: table-row
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:
nextLink
""""""""
.. container:: table-row
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:
prevLinkText
""""""""""""
.. container:: table-row
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:
nextLinkText
""""""""""""
.. container:: table-row
Property
nextLinkText
Data type
stdWrap
Description
stdWrap function for the **linktext** of link to next record.
Default
crop = 25\|...\|1
.. ###### END~OF~TABLE ######
[tsref:plugin.tt\_news.rgnewslinks]
.. ### BEGIN~OF~TABLE ###
.. _rgnewslinksPageBrowser:
rgnewslinksPageBrowser
""""""""""""""""""""""
.. container:: table-row
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.
.. ###### END~OF~TABLE ######
[tsref:plugin.tt\_news.\_LOCAL\_LANG. *LL-KEY* ]
.. _Example:
Example
^^^^^^^
Take a look at the ext\_typoscript\_setup.txt in the extension
directory
.. _generated:
((generated))
"""""""""""""
.. _You-like-my-extension:
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:
Known problems
~~~~~~~~~~~~~~
- The extension only works correct with one single view for every other
views.
- No real problems yet
.. _To-Do-list:
To-Do list
----------
- Code Improvement
- Check for multilanguage support
- Send me bugs (maybe including also the bugfix)
.. _Changelog:
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
|img-2| EXT: rgnewslinks - 3
.. ######CUTTER_MARK_IMAGES######
.. |img-1| image:: img-1.png
.. :align: left
.. :border: 0
.. :height: 167
.. :id: Grafik1
.. :name: Grafik1
.. :width: 547
.. |img-2| image:: img-2.png
.. :align: left
.. :border: 0
.. :height: 32
.. :id: Graphic1
.. :name: Graphic1
.. :width: 102