[TYPO3-templavoila] Accessing the Index of a Section

Michael Feinbier typo3 at feinbier.net
Tue Sep 30 19:22:46 CEST 2008


Hi Everybody,

I've read that it should be possible somehow to access the current index
of a section. I want to create an id-attribute dynamically from this
section index. The uid of the FCE is accessible via
"register:tx_templavoila_pi1.parentRec.uid" but how can I get the
current Index?

[...]
<TypoScript>
	10 = TEXT
	10.data = register:tx_templavoila_pi1.parentRec.uid
	20 = TEXT
	20.value = -
	30 = TEXT
	30.data = ?????
	30.substring = 0,5
</TypoScript>
[...]

My aim is to get <div-elements for each section like this

<div id="423-1"></div>
<div id="423-2"></div>
<div id="423-3"></div>

Does anybody know how? Are all tv-registers documented somewhere?

Thanks in advance :)

Michael


More information about the TYPO3-project-templavoila mailing list