[TYPO3-dev] tt_news, pointer, dontUseBackPid mystery
Бойчук Петро
petro.boychuk at gmail.com
Tue May 15 21:02:20 CEST 2007
Could you please help me, or explain.
I have a situation:
1) on 1 page list and single views from tt_news
2) list view shows only 12 elements? but it has a pagebrowser
3) When i go to f.e. page 2 in list (elements from 13 to 24) i want to have
links from this items to current page to show this this item in single view
4) yes, i configured all this stuff, and i have pagebrowser working, and
link to current page to show item on singe view.
but, it is not working together.
I mean tt_news creating link to single view without tx_ttnews[pointer] in
in. I was playing for about an hour to figure things out and founded that i
set dontUseBackPid = 1. When i set dontUseBackPid = 0 my links were
generated ok. Almost ok, they have tx_ttnews[backPid]. I do not want it. It
is nonsense for me to use this stuff (I have single and list on same page) .
Why does it happen ? Because of 2 snippets of code
pibase
function
pi_linkTP_keepPIvars($str,$overrulePIvars=array(),$cache=0,$clearAnyway=0,$altPageId=0)
{
if (is_array($this->piVars) && is_array($overrulePIvars) &&
!$clearAnyway) {
$piVars = $this->piVars;
unset($piVars['DATA']);
$overrulePIvars =
t3lib_div::array_merge_recursive_overrule($piVars,$overrulePIvars);
if ($this->pi_autoCacheEn) {
$cache = $this->pi_autoCache($overrulePIvars);
}
}
$res =
$this->pi_linkTP($str,Array($this->prefixId=>$overrulePIvars),$cache,$altPageId);
return $res;
}
AND
tt_news
$this->local_cObj->LOAD_REGISTER(array('newsMoreLink' =>
$this->pi_linkTP_keepPIvars($this->pi_getLL('more'), array('tt_news' =>
$row['uid'], 'backPid' =>
($this->conf['dontUseBackPid']?null:$this->config['backPid'])),
$this->allowCaching, ($this->conf['dontUseBackPid']?1:0), $singlePid)), '');
Is it a bug?
thank you.
--
З повагою,
Бойчук Петро
More information about the TYPO3-dev
mailing list