[TYPO3-ttnews] cHash in tt_news

Robert von Hackwitz robert at anughea.com
Thu Jan 19 17:51:44 CET 2006


Hi All,

i noticed that some links generated by tt_news plugins aren't cHashed, 
f.i.: choosing "Act as category selector" renders category links with 
no_cache = 1 parameter, as well if plugin.tt_news.allowCaching is set to 
value 1.
This happen, also in pages with What to display set to "SINGLE", etc...

A little "investigation" in class.tx_ttnews.php shows the lack of the 
cache argument when pi_linkTP_keepPIvars method is called for instance 
in  method getCatMarkerArray of class tx_ttnews.

I've modified, temporarily, class.tx_ttnews.php like this:

OLD: $news_category[] = 
$this->pi_linkToPage($this->pi_linkTP_keepPIvars($catTitle, array('cat' 
=> $this->categories[$row['uid']][$key]['catid'], 'backPid' => null, 
$this->pointerName => null), '', '', $catSelLinkParams),
                              ^^^
$this->categories[$row['uid']][$key]['shortcut'], 
$this->categories[$row['uid']][$key]['shortcut_target']);

NEW: $news_category[] = 
$this->pi_linkToPage($this->pi_linkTP_keepPIvars($catTitle, array('cat' 
=> $this->categories[$row['uid']][$key]['catid'], 'backPid' => null, 
$this->pointerName => null), '1', '', $catSelLinkParams),
                              ^^^
$this->categories[$row['uid']][$key]['shortcut'], 
$this->categories[$row['uid']][$key]['shortcut_target']);

After 2 days of testing it seems working well.

So, after a so long prologue ;-) my question is:
there is an explicit reason for using NO cHash in tt_news category links 
? Is this a bug or a feature ? ;-)))

Sorry for my poor english.

Greets, Robert.

--
Robert von Hackwitz



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