[Typo3] Get Page-ID with SimulateStaticDocuments

Sven Osterwalder sven.osterwalder at infoklick.ch
Wed Aug 17 15:00:07 CEST 2005


Hello,
thank you for your answer. Indeed, it is TS.
I'd like to show the news only when the user is on the page "Home".
My attempt to realize this, looks like this:

[globalVar = TSFE:id = 31]
            NEWS < plugin.tt_news
            NEWS {
                code = LATEST
                defaultCode = LATEST
                pid_list >
                pid_list = 52
            }
        [global]

The page "Home" has the ID 31.
Am I doing something wrong?
The URL has the following ending:

31.0.html

Thanks and with kind regards

Sven Osterwalder

-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von Mathias
Schreiber [wmdb]
Gesendet: Mittwoch, 17. August 2005 14:41
An: typo3-english at lists.netfielders.de
Betreff: Re: [Typo3] Get Page-ID with SimulateStaticDocuments

Sven Osterwalder wrote:
> Hello list,
> is it somehow possible to get the page-ID from the current page?
> Normally I could use something like globalVar = TSFE:id = 31 but with
> simulateStaticDocuments it won't work.
> Does anybody knows a solution for this?

But it should.
Typoscript or PHP?
TS I suppose

-- 
if ($GLOBALS['TSFE']->fe_user->user['ahnung'] == 0) {
	$this->fresseHalten = 1;
}
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list