[Typo3-dev] pi_linkTP_keepPIvars and simulate static
Andreas Schwarzkopf
schwarzkopf.no.spam at artplan21.de
Wed Mar 16 23:17:58 CET 2005
Hallo Arco,
pi_linkTP_keepPIvars _is_ simulateStatic aware.
You have not set the $cache flag (1) in the function call:
pi_linkTP_keepPIvars($str,$overrulePIvars=array(),$cache=0,$clearAnyway=0)
but it is needed for simulateStatic. Also check the variables
$pi_autoCacheFields, $pi_autoCacheEn in the tslib_pibase class for an
example. Another working example is the tt_news extension.
grtx
Andreas
Arco schrieb:
> ###SCRIPT and OUTPUT###
> t3lib_div::debug($this->pi_linkTP_keepPIvars('|', array('func'=>'bidie','fid' => '1')));
> => gives:
> <a href="Fotoboek.4.0.html?&no_cache=1&tx_gooffotoboek_pi1[func]=bidie&tx_gooffotoboek_pi1[fid]=1">|</a>
>
> t3lib_div::debug($this->createUrl(array('func'=>'bidie','fid' => '1')));
> => gives:
> <a href="Fotoboek.4+M5ab249f20e0.0.html">|</a>
>
> ####
>
> I expect the second. Should I use another function, should I use it with other options or is the pi_linkTP_keepPIvars not simulateStatic aware?
>
> Arco
More information about the TYPO3-dev
mailing list