[TYPO3-dev] Creating links with typeNum using simulateStaticDocuments
Mario Matzulla
mario.melanie at arcor.de
Sun Feb 4 19:19:52 CET 2007
Hi Oliver,
Oliver Klee schrieb:
> Hi,
>
> for a site, I'm using simulateStaticDocuments. Now I also use typeNum to
> create different output (in this case, CSV). Yet creating links to pages
> with a non-default type using pi_linkTP fails if I provide the type as
> another parameter.
>
> The resulting links look like this:
>
> 6.html&?type=4
>
> instead of
>
> 6.4.html
>
>
> What can I do to make this work?
I have had the same problem with cal. A solution Rupi showed me was this:
Before you create the link store the forceTypeValue in a temp var. Than
set a new forceTypeValue:
$tempValue = $GLOBALS['TSFE']->config['config']['forceTypeValue'];
$GLOBALS['TSFE']->config['config']['forceTypeValue'] = 150;
[create the link]
Afterwards reset the original value:
$GLOBALS['TSFE']->config['config']['forceTypeValue'] = $tempValue;
Regards,
Mario
>
>
> Thanks in advance,
>
>
> Oliver
More information about the TYPO3-dev
mailing list