[TYPO3] how to get Page Number using TS?

Daniel Selinger typo3 at dselinger.net
Mon Jan 22 22:08:57 CET 2007


Hi,

perhaps something like this (I'm not shure):

lala = TEXT
lala.data = TSFE:pid

hih
Ling


2007/1/22, David Lanier <mailinglists at davidlanier.com>:
>
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list