[TYPO3] how to get Page Number using TS?
David Lanier
mailinglists at davidlanier.com
Wed Jan 24 00:47:32 CET 2007
Perfect!
updating this line:
pidInList.data = page:pid
worked like a charm!
great suggestions!
Thank you very much!!
-david
>
> You don't have to include a static template to make it working, since this
> is basic TypoScript that doesn't require anything like CSS-styled-content or
> the like.
>
> But I have to admit I didn't test it with TV but with a simple TS setup.
> So the snippet is correct but maybe you have to tweak it a bit, since TV
> handles pages differently.
>
> Try this one:
>
> lib.pageNumber = CONTENT
> lib.pageNumber {
> table = pages
> select {
> pidInList.data = page:pid
> }
> renderObj = TEXT
> renderObj {
> if.value.field = uid
> if.equals.data = TSFE:id
> data = cObj:parentRecordNumber
> wrap = <yourwrap>|</goeshere>
> }
> }
>
> HTH
>
> Joey
>
>
More information about the TYPO3-english
mailing list