[TYPO3] how to get Page Number using TS?
Katja Lampela
katja.lampela at lieska.net
Mon Jan 22 23:12:50 CET 2007
Did you already check pm_pagenumber
Katja
David Lanier wrote:
> Does anyone have an idea of how to get the current page number, using
> typoscript?
>
> My scenario is like this:
>
> Page tree:
> - page 1
> - page 2
> -- subpage 1
> -- subpage 2
> -- subpage 3
> -- subpage 4 (current page)
> -- subpage 5
> - page 3
> - page 4
> - page 5
>
> I would like to use some typoscript similar to the following, but I have
> not been able to locate it.
> lib.pagenum = TEXT
> lib.pagenum.value = {currentpage.pagenum}
> // expecting the number "4"
>
> HMENU.special.browse gets close, but I don't think it provides the
> number of the current page. I'm not looking for the PID of the current
> page, only what number it is within its section. (I want to use this in
> a javascript in the page header.)
>
> Any tips would be most appreciated.
> David Lanier
More information about the TYPO3-english
mailing list