Discussion:
[TYPO3] How to get current Page ID from TypoScript
Sancar Saran
2008-09-15 08:49:38 UTC
Permalink
Hello,

How can I get and use current page id from template TypoScript


Regards

Sancar
Tomas Mrozek
2008-09-15 09:03:33 UTC
Permalink
temp.page_uid = TEXT
temp.page_uid.field = uid

Tomas Mrozek
Sancar Saran
2008-09-15 09:22:04 UTC
Permalink
Post by Tomas Mrozek
temp.page_uid = TEXT
temp.page_uid.field = uid
Thanks, it works and my need a bit different


evodot.blocks = COA
evodot.blocks {
5 < plugin.tx_evodotinjector_needle
5 {
evo_block = page-uid-head
}
}

at evo_block = page-uid-head

page- -head was static and I need to get that uid.

Regards

Sancar
Dmitry Dulepov [typo3]
2008-09-15 10:38:29 UTC
Permalink
Hi!
Post by Sancar Saran
Thanks, it works and my need a bit different
evodot.blocks = COA
evodot.blocks {
5 < plugin.tx_evodotinjector_needle
5 {
evo_block = page-uid-head
}
}
at evo_block = page-uid-head
page- -head was static and I need to get that uid.
Well, ask the right questions from the beginning ;)

The answer depends on whether "evo_block" is stdWrap or not. If yes, simply use evo_block.data = page:id. If not, you can't do anything.
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/debugging_symlinked_typo3_files_with_komodo_ide_on_mac/
Sancar Saran
2008-09-15 12:05:10 UTC
Permalink
Post by Dmitry Dulepov [typo3]
Hi!
Post by Sancar Saran
Thanks, it works and my need a bit different
evodot.blocks = COA
evodot.blocks {
5 < plugin.tx_evodotinjector_needle
5 {
evo_block = page-uid-head
}
}
at evo_block = page-uid-head
page- -head was static and I need to get that uid.
Well, ask the right questions from the beginning ;)
The answer depends on whether "evo_block" is stdWrap or not. If yes, simply
use evo_block.data = page:id. If not, you can't do anything.
So, thats mean, I cannot get "Page ID from TypoScript".

evo_block does not related anything from TYPO3. it was trigger when it set,
calls some kidn of SOA like data structure.

Hmm it seems I have to assign special word to get current page id from php.

Thanks for responding.

Regards

Sancar
Xavier Perseguers
2008-09-15 12:15:08 UTC
Permalink
Post by Sancar Saran
Hmm it seems I have to assign special word to get current page id from php.
This is accessible with (from memory) $GLOBALS['TSFE']->id

Isn't it was you are looking for?
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
Sancar Saran
2008-09-15 15:02:55 UTC
Permalink
Post by Xavier Perseguers
Post by Sancar Saran
Hmm it seems I have to assign special word to get current page id from php.
This is accessible with (from memory) $GLOBALS['TSFE']->id
Isn't it was you are looking for?
Yes,

thank you very much.

Sancar

rupali.ffm
2008-09-15 09:10:47 UTC
Permalink
{page:uid}

refer TSref as per ur need.
Post by Sancar Saran
Hello,
How can I get and use current page id from template TypoScript
Regards
Sancar
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Loading...