[TYPO3-ttnews] EXT:news realURL with List and Single on same page does not display Single

Andreas Kiessling kiessling at pluspol.info
Tue Oct 16 22:05:01 CEST 2012


Hi Tony,

array(
    'GETvar' => 'tx_news_pi1[action]',
    'noMatch' => 'bypass'
),

this is your problem.
It tells realurl to skip the parameter, if no mapping is found for the
value.


You can try to "fix" the missing action param with TypoScript, if a news
uid was successfully determined by realurl. Adapted from a post in the
english newsgroup (not tested with news though):

########################################
[globalVar = GP:tx_news_pi1|news > 0]
config.defaultGetVars {
	tx_news_pi1.action = detail
}
[global]
########################################

If the news is not available anymore, then this will fail and display
the default (most likely the list) action. A 404 page would probably be
better in that case.

You should only use that setting, if all you need is a list and detail
view since you loose the ability to switch to other views, e.g.
searchresult on that page.


HTH,
Andreas


More information about the TYPO3-project-tt-news mailing list