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
- # 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
- [end]
- [globalVar = GP:tx_ttnews|tt_news > 0]
- # Set code to SINGLE, if the GETvar tx_ttnews[tt_news] exists
- # Enable indexing of the SINGLE view
- config.index_enable = 1
- [global]
Related Articles:
- TYPO3: Setting up secondary language
- TYPO3: Changing the tt_news template markup
- TYPO3: Add tt_news LATEST as TypoScript Object
- TYPO3: Setting XHTML 1.1 DOCTYPE
- TYPO3: Making a simple menu as an unordered list in XHTML
- TYPO3/TypoScript: How to add Page Updated Timestamp
- TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support
- TYPO3: XHTML Valid 3 Level Menu in Typoscript
- bbPress One Forum Only – Permanent Redirect
- TYPO3: How to make a path/breadcrumb in typoscript
Thanks, great tip.
Thanks a lot, saved me a lot of work!