[TYPO3-UG Dutch] tt_news <!--###LINK_ITEM###-->
Daniel Doesburg | DOESBURG.BIZ
daniel at typo3-nl.eu
Mon Aug 8 12:43:34 CEST 2011
Hoi Dick,
Ja. Maar dan niet in de source maar in de documentatie.
Of begrijp ik de vraag niet?
Dit staat er onder andere in:
Pagebreaks
When you have long articles in SINGLE view, you might want to split them
into multiple pages and have a page navigation inserted to navigate
between these split pages.
This can be done automatically by specifying the amount of words after
that a pagebreak is inserted. When the amount of words is reached, the
extension looks for the next dot (.) and inserts a pagebreak after it
(default). Alternatively you can configure tt_news to insert pagebreaks
only after paragraphs (an empty line in the bodytext field) by setting
“useParagraphAsPagebreak=1”.
You can disable this feature for each news record (“No automatic
pagebreaks for this record”).
You can also add a manual pagebreak at a specific position in the text.
At the desired position, enter the text:
“<---newpage--->” (default) or the string that you configured as
“pagebreakToken”. This will trigger a pagebreak at this position. On the
new page, the wordcounter starts again for automatic pagebreaking.
However, manual pagebreaks work even when the automatic pagebreak
feature is disabled.
The subheader is by default only displayed on the first page of a single
view with multiple pages. If this is not wanted the subheader can be
configured to appear on all those pages by setting
“subheaderOnAllSViewPages=1”.
One thing to note is the way images are handled on multiple pages. The
images for the additional pages in single view are asssigned by their
position in the Image-list of the news record.
Example: If you have 6 images assigned and “imageCount” for the single
view set to “2”, then the first 2 images will appear on the first page,
the second two images at the second page and so on.
There is a seperate marker for the pagebrowser in single view:
###NEWS_SINGLE_PAGEBROWSER###
Alternatively it is possible to simply append the pagebrowser to the
bodytext without a special marker by setting “appendSViewPBtoContent=1”
(this is the default).
Example:
# TS setup
plugin.tt_news {
useMultiPageSingleView = 1
pageBreakToken = <break>
maxWordsInSingleView = 300
useParagraphAsPagebreak = 1
subheaderOnAllSViewPages = 0
appendSViewPBtoContent = 0
}
This will enable the pagebrowser for the Single view. The string
“<break>” will trigger a manually pagebreak. If the text is longer than
300 words, a pagebreak will be inserted automatically after the next
paragraph (an empty line in the field bodytext). The subheader will be
displayed only on the first page and the pagebrowser will be rendered to
its own marker (###NEWS_SINGLE_PAGEBROWSER###).
For a detailed description of the TypoScript options that are mentioned
here, take a look at the section “Reference”.
Dick Hoogendijk schreef:
> Op 7-8-2011 15:27, Jigal van Hemert schreef:
>> Hoi,
>>
>> On 7-8-2011 14:26, Jordan van Bergen wrote:
>>> Ik wil gewoon een class kunnen toevoegen aan een link. Zo simpel is
>>> het ;-)
>>
>> Een blik in de source code van tt_news:
>
> Is dat ook iets wat ik moet doen? Ik zoek me een ongans naar de
> mogelijkheid om zelf de plek te kiezen waar een nieuwsartikele wordt
> afgebroken en op een volgende pagina verder gaat. Volgens de manual moet
> dit mogelijk zijn maar hoe en waar dit precies moet en geregeld wordt
> kan ik dus niet vinden. Wel de optie in de tabs of een artikel wel of
> niet automatisch moet worden verdeeld. Maar waar regel je dit dan?
More information about the TYPO3-UG-Dutch
mailing list