[Typo3-dev] pi_linkTP_keepPIvars and simulate static

Andreas Schwarzkopf schwarzkopf.no.spam at artplan21.de
Thu Mar 17 16:41:46 CET 2005


Arco schrieb:
> $this->pi_linkTP_keepPIvars('|', array('func'=>'bidie','fid' => '1'),1,0)
> results in: 
> <a href="Fotoboek.4+M51aa6008ff4.0.html?&amp;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?

No. You have to use cHash or you have to disable caching. If you enable 
caching and _not_ use cHash, you will see the same content if you open 
the page with different url parameters.

But: if you only add cHash to your 
config.simulateStaticDocuments_pEnc_onlyP list, then you have got it!

grtx

Andreas

> 
> 
> 
> 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