[Typo3] Linking with SimulateStaticDocuments

Kraft Bernhard kraftb at gmx.net
Wed Feb 23 11:24:02 CET 2005


Jose Cortina wrote:
> Clarification: The simulated URL is working for standard content elements, but I have created a plugin of my own, and it is
 > there where I use a lot of links to other pages in my site, and it is there where the links are not being simulated... I
 > will go back to documentation and find the problem.

If you just create links like this in your extension they will not be properly converted
if SimulateStatic is on:

$link = 'index.php?id='.$this->linkid;

because Typo3 doesn't do link replacing with simulate static ...

the functionality of SimulateStatic is more that every link that gets retrieved via Typo3
functions has the proper look depending on wheter no link rewrite is used, SimulateStatic
or RealURL is used...

So you should use the link generation function of Typo3 ...

See
tslib/class.tslib_pibase.php line 47
($this->pi_getPageLink(...) , etc.)

or the link functions of
$this->cObj
see:
tslib/class.tslib_content.php line 136
($this->cObj->typoLink(...), etc.)


greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list