[Typo3-dev] pi_linkTP_keepPIvars and simulate static
Arco
arco at appeltaart.mine.nu
Thu Mar 17 16:17:48 CET 2005
$this->pi_linkTP_keepPIvars('|', array('func'=>'bidie','fid' => '1'),1,0)
results in:
<a href="Fotoboek.4+M51aa6008ff4.0.html?&cHash=2ff0ba4679">|</a>
htmlspecialchars($this->cObj->currentPageUrl( array('tx_gooffotoboek_pi1[func]'=>'bidie','tx_gooffotoboek_pi1[fid]' => '1'),0))
Results in:
Fotoboek.4+M51aa6008ff4.0.html
Can I use the simulate static without the cHash AND without the complete parameter list?
Andreas Schwarzkopf wrote ..
> 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.
More information about the TYPO3-dev
mailing list