Categories > OpenTBS with ODT >

How can I display some elments of a sub-block as a list-item wqith different style and others as sim...

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Hedwig
Date: 2013-04-10
Time: 15:05

How can I display some elments of a sub-block as a list-item wqith different style and others as simple paragraph?

Hi!

How can I display some elments of a sub-block as a list-item with style 'List 1' or 'List 2' and others as simple paragraph?

Here is my template:
[arbeitgeber;block=begin;sub1=projekte;][arbeitgeber.von] - [arbeitgeber.bis] [arbeitgeber.name;magnet=text:span], [arbeitgeber.ort;magnet=text:span;]
[arbeitgeber.beruf;magnet=text:p;]
[arbeitgeber.abteilungs_gruppe;magnet=text:p;]
[arbeitgeber_sub1.text;block=list]
[arbeitgeber_sub1.styleName;att=text:p#text:style-name]
[arbeitgeber;block=end;]

That is how the objects look like:
array(8) {
  ["name"]=> "Unternehmen"
  ["ort"]=> "Berlin"
  ["beruf"]=> "Beruf"
  ["abteilungs_gruppe"]=>  ""
  ["ueberlasser"]=> ""
  ["von"]=> "2011"
  ["bis"]=> "2012"
  ["projekte"]=>
  array(2) {
    [0]=>
    array(4) {
      ["styleName="]=>
      string(8) "Standard"
      ["ebene"]=>
      string(1) "0"
      ["text"]=>
      string(35) "Flashen und Vorbereiten der Targets"
    }
    [1]=>
    array(4) {
      ["styleName="]=>
      string(8) "ListenElement"
      ["ebene"]=>
      string(1) "0"
      ["text"]=>
      string(30) "Testen der Navigationssoftware"
    }
  }
}

Anyone with an idea?

Thanks in advance, Hedwig
By: Skrol29
Date: 2013-04-11
Time: 00:22

Re: How can I display some elments of a sub-block as a list-item wqith different style and others as simple paragraph?

> How can I display some elments of a sub-block as a list-item with style 'List 1' or 'List 2' and others as simple paragraph?

Why don't you simply use a format that display an item like a paragraph?
Then you can display all sub-record as items of a list.