[TYPO3] How to get current Page ID from TypoScript

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Sep 15 12:38:29 CEST 2008


Hi!

Sancar Saran wrote:
> 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/


More information about the TYPO3-english mailing list