[TYPO3] Inserting page number into language switch code
Tyler Kraft
headhunterxiii at yahoo.ca
Thu Aug 23 17:17:32 CEST 2007
why don't you look at dataWrap in stdWrap of TSref.
Sara Weale wrote:
> Dear all,
>
> I need help to automatically add the pid into a piece of typoscript
> which switches language, ie replacing the text [PAGE NUMBER] with code
> that generates that page id.
>
> Here is the code for each relevant global setting:
>
> lib.arlwy_top_de = COBJ_ARRAY
> lib.arlwy_top_de {
> 8 = TEXT
> 8.field = uid
> 8.wrap = <a href="index.php?id=[PAGE NUMBER]&L=1">Cymraeg</a>
> }
>
> lib.arlwy_top_de = COBJ_ARRAY
> lib.arlwy_top_de {
> 8 = TEXT
> 8.field = uid
> 8.wrap = <a href="index.php?id=[PAGE NUMBER]&L=0">English</a>
> }
>
> Thanks in advance,
> Sara
>
More information about the TYPO3-english
mailing list