[TYPO3-templavoila] Accessing the Index of a Section

Michael Feinbier typo3 at feinbier.net
Mon Oct 6 17:37:29 CEST 2008


Hi again,

Michael Feinbier schrieb:
> 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?

I found a solution. It can be easily done by a register:

> 5 = LOAD_REGISTER
> 5 {
>    Counter.cObject = TEXT
>    Counter.cObject {
>    data = register:Counter
>    wrap = |+1
>      }
>    Counter.prioriCalc = intval
> }
> 								
> 10 = TEXT
> 10.data = register:Counter

This works fine for me :)

Just for your information and if somebody else get this problem.

Cheers,

Michael


More information about the TYPO3-project-templavoila mailing list