[TYPO3-english] Antw: Re: CoolUri - tt_news -> related news

Joe Berger joeberger at gmx.de
Mon Apr 20 09:53:53 CEST 2009


Hi Jan,

I just took a look at realurl. I has no problems with related news.
And I think CoolUri had no problems with related news in tt_news 2.5.2.

Regards
Joe

>>> Jan Bednarik<info at bednarik.org> schrieb am 17.04.2009 um 22:56:
> Tt_news contains this piece of code:
> 
> $queryString = explode('&', t3lib_div::implodeArrayForUrl('', 
> t3lib_div::_GET())) ;
> if ($queryString) {
> ...
> $newsAddParams = '&' . implode($paramArray, '&');
> }
> // load the parameter string into the register 'newsAddParams' to access 
> it from TS
> $veryLocal_cObj->LOAD_REGISTER(array('newsAddParams' => $newsAddParams), 
> '');
> 
> so, when there is no $queryString, there won't be any newsAddParams. 
> This smells, because, with CoolUri, "t3lib_div::_GET()" is empty.
> 
> Yep, that's the problem.
> 
> CoolUri doesn't set $_GET array and this code depends on that. That's 
> really stupid. I don't know how about RealUrl, but I bet it doesn't set 
> it neither.
 


More information about the TYPO3-english mailing list