TYPO3: tt_news LIST and SINGLE at the same page

The following TS code enables the feature of showing the tt_news list and the tt_news single view at the same page.


# Clear the code field
plugin.tt_news.code >
plugin.tt_news.code = LIST
# Prevent indexing of the LIST view
config.index_enable = 0

[globalVar = GP:tx_ttnews|swords = ]
# Do nothing (reverse hack)
[else]
# Set code to SEARCH if swords (search is done) exists
plugin.tt_news.code = SEARCH
[end]

[globalVar = GP:tx_ttnews|tt_news > 0]
# Set code to SINGLE, if the GETvar tx_ttnews[tt_news] exists
plugin.tt_news.code = SINGLE
# Enable indexing of the SINGLE view
config.index_enable = 1
[global]

This entry was posted in TYPO3/TypoScript. Bookmark the permalink.

2 Responses to TYPO3: tt_news LIST and SINGLE at the same page

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.