[Typo3-dev] pi_linkTP_keepPIvars and simulate static

Arco arco at appeltaart.mine.nu
Wed Mar 16 20:16:40 CET 2005


I used my own routine to generate my URLs (I know that's not the way to do it).
Trying to find simular routines for generating URLs or tags I used pi_linkTP_keepPIvars.
Combining pi_linkTP_keepPIvars and simulate static I ran into trouble:

###TEMPLATE###
[global]
config.simulateStaticDocuments = 1
config.simulateStaticDocuments_pEnc = md5
config.simulateStaticDocuments_noTypeIfNoTitle = 1
config.simulateStaticDocuments_addTitle = 40
config.simulateStaticDocuments_pEnc_onlyP=no_cache,L,tx_gooffotoboek_pi1[func],tx_gooffotoboek_pi1[fid],tx_gooffotoboek_pi1_fid,tx_gooffotoboek_pi1_func

###SCRIPT and OUTPUT###
t3lib_div::debug($this->pi_linkTP_keepPIvars('|', array('func'=>'bidie','fid' => '1')));
=> gives:
<a href="Fotoboek.4.0.html?&amp;no_cache=1&amp;tx_gooffotoboek_pi1[func]=bidie&amp;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