[TYPO3] Inserting page number into language switch code
    Sara Weale 
    webmaster at llgc.org.uk
       
    Thu Aug 23 17:14:52 CEST 2007
    
    
  
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
-- 
Sara Weale
Rheolwr y We / Web Manager
Llyfrgell Genedlaethol Cymru
National Library of Wales
Aberystwyth
Ceredigion
SY23 3BU
Ffôn/Phone: 01970 632845
Ebost/Email: webmaster at llgc.org.uk
http://www.llgc.org.uk/
Nid yw'r neges yma o reidrwydd yn adlewyrchu barn y Llyfrgell.
This message does not necessarily reflect the opinion of the Library.
    
    
More information about the TYPO3-english
mailing list