[Typo3] Few language customizations?

Marko Rosic roske at mainstream.co.yu
Tue Aug 30 21:29:22 CEST 2005


Dmitry Dulepov wrote:

> Hi!
> 
> You need at least to read this section to the end:
>
http://typo3.org/documentation/document-library/doc_core_tsref/Condition_reference/

Thanks... I kind of knew that, but I'm not very skilled with TypoScript.

Here is what worked for me, although I'm sure there is more elegant
solution ;)

temp.header = COA
temp.header {
  10 = TEXT
  10 {
    value = {page:title}
    insertData = 1
    wrap = <h1> | </h1>
  }

  20 = TEXT
  20 {
    value = Нушићева 4, 11000 Београд<br />тел. 011 / 32 32 587, 32 29 946,
32 29 071, факс 011 / 32 26 796
    insertData = 1
    wrap = <div id="info"> | </div>
  }

  30 = FORM
  30.type = index.php?id=16
  30.method = POST
  30.layout = <a href="index.php?id=16">###LABEL###</a> ###FIELD###

  30.dataArray {
    10.label = Претрага:
    10.type = tx_indexedsearch[sword]=input,40
    10.value =
    20.type = tx_indexedsearch[_sections]=hidden
    20.value = 0
    30.type = tx_indexedsearch[pointer]=hidden
    30.value = 0
    40.type = tx_indexedsearch[ext]=hidden
    40.value = 0
  }
}

[globalVar = GP:L = 0]
temp.header = COA
temp.header {
  10 = TEXT
  10 {
    value = {page:title}
    insertData = 1
    wrap = <h1> | </h1>
  }

  20 = TEXT
  20 {
    value = Нушићева 4, 11000 Београд<br />тел. 011 / 32 32 587, 32 29 946,
32 29 071, факс 011 / 32 26 796
    insertData = 1
    wrap = <div id="info"> | </div>
  }

  30 = FORM
  30.type = index.php?id=16
  30.method = POST
  30.layout = <a href="index.php?id=16">###LABEL###</a> ###FIELD###


  30.dataArray {
    10.label = Претрага:
    10.type = tx_indexedsearch[sword]=input,40
    10.value =
    20.type = tx_indexedsearch[_sections]=hidden
    20.value = 0
    30.type = tx_indexedsearch[pointer]=hidden
    30.value = 0
    40.type = tx_indexedsearch[ext]=hidden
    40.value = 0
  }
}
[end]

[globalVar = GP:L = 2]
temp.header = COA
temp.header {
  10 = TEXT
  10 {
    value = {page:title}
    insertData = 1
    wrap = <h1> | </h1>
  }
  20 = TEXT
  20 {
    value = Nušićeva 4, 11000 Beograd<br />tel. 011 / 32 32 587, 32 29 946,
32 29 071, fax 011 / 32 26 796
    insertData = 1
    wrap = <div id="info"> | </div>
  }
  30 = FORM
  30.type = index.php?id=16&L=2
  30.method = POST
  30.layout = <a href="index.php?id=16&L=2">###LABEL###</a> ###FIELD###


  30.dataArray {
    10.label = Pretraga:
    10.type = tx_indexedsearch[sword]=input,40
    10.value =
    20.type = tx_indexedsearch[_sections]=hidden
    20.value = 0
    30.type = tx_indexedsearch[pointer]=hidden
    30.value = 0
    40.type = tx_indexedsearch[ext]=hidden
    40.value = 0
  }
}
[end]

[globalVar = GP:L = 3]
temp.header = COA
temp.header {
  10 = TEXT
  10 {
    value = {page:title}
    insertData = 1
    wrap = <h1> | </h1>
  }
  20 = TEXT
  20 {  
    value = Nušićeva 4, 11000 Belgrade, Serbia and Montenegro<br />tel.
011 / 32 32 587, 32 29 946, 32 29 071, fax 011 / 32 26 796
    insertData = 1
    wrap = <div id="info"> | </div>
  }
  30 = FORM
  30.type = index.php?id=16&L=3
  30.method = POST
  30.layout = <a href="index.php?id=16&L=3">###LABEL###</a> ###FIELD###


  30.dataArray {
    10.label = Search:
    10.type = tx_indexedsearch[sword]=input,40
    10.value =
    20.type = tx_indexedsearch[_sections]=hidden
    20.value = 0
    30.type = tx_indexedsearch[pointer]=hidden
    30.value = 0
    40.type = tx_indexedsearch[ext]=hidden
    40.value = 0
  }
}
[end]


-- 
Marko Rosic, General manager
---
Mainstream design



More information about the TYPO3-english mailing list