Zum Inhalt springen

Problem bei Anleitung.pdf Beispiel

Erstellt am 18. September 2005 · 5 Antworten · letzte Antwort am 25. September 2005

Tags: Frage

mukraker ·

navi geht super, content wird auch angezeigt.

Leider wird der Content aber nicht in TS Vorgaben sprich als Bild etc. dargestellt sondern ganz normal.

Woran kann das liegen? Habe ich was vergessen. Danke

hier der Code:

seite = PAGE
seite {
  typeNum = 0 
  bodyTag = <body bgcolor="#DDDDDD">
  stylesheet = fileadmin/style.css
  meta.AUTHOR = Robert Meyer
  meta.DESCRIPTION = Hier steht eine Beschreibung
  
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/vorlage.html
  10.workOnSubpart = DOKUMENT
  10.marks {
    TRAILER = IMAGE
    TRAILER.file = GIFBUILDER
    TRAILER.file {
      XY = 549, 86
      backColor = #82BC8B
      
      10 = TEXT
      10.text.field = subtitle // title
      10.fontSize = 60
      10.fontFile = fileadmin/fonts/arialbi.ttf
      10.fontColor = #96CC9F
      10.offset = 10, 75
      
      20 = TEXT
      20.text.field = subtitle // title
      20.fontSize = 36
      20.fontFile = fileadmin/fonts/arialb.ttf
      20.fontColor = #E2F5E5
      20.offset = 40, 68
    }

    MENU_OBEN = HMENU
    MENU_OBEN.special = directory
    MENU_OBEN.special.value = 2
    MENU_OBEN.1 = TMENU
    MENU_OBEN.1.NO = 1
    MENU_OBEN.1.NO.ATagParams = class="linkWeiss"
    MENU_OBEN.1.NO.linkWrap =  | | | | |*|  |

    MENU_LINKS = HMENU
    MENU_LINKS.special = directory
    MENU_LINKS.special.value = 3
    MENU_LINKS.entryLevel = 1
    MENU_LINKS.1 = GMENU
    MENU_LINKS.1.NO = 1
    MENU_LINKS.1.NO {
      wrap = |<br />
      XY = 146, 30
      backColor = #478951
    
      10 = TEXT
      10.text.field = title
      10.fontColor = #FFFFFF
      10.fontFile = fileadmin/fonts/arialb.ttf
      10.fontSize = 12
      10.offset = 7, 19
    
      20 = IMAGE
      20.file = GIFBUILDER
      20.file {
        XY = 146,1
        backColor = #FFFFFF
      }
      20.offset = 0, 29
    }

    MENU_LINKS.1.RO < .MENU_LINKS.1.NO
    MENU_LINKS.1.RO {
      tmp < .backColor
      backColor = #82BC8B
      5 < .10
      5.fontColor < .tmp
      5.offset = 8,22
    }

    MENU_LINKS.1.CUR < .MENU_LINKS.1.RO
    MENU_LINKS.2 < .MENU_LINKS.1
    MENU_LINKS.2 {
      NO.backColor = #E2F5E5
      NO.10.fontColor = #478951
      NO.20.file.backColor = #478951
      RO < .NO
      RO.backColor = #FFFFFF
      RO.5 >
      CUR < .RO
    }
    
    CONTENT = CONTENT
    CONTENT {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 0
  }

  lib.stdheader >
  lib.stdheader = CASE
  lib.stdheader {
    key.field = header_layout
    1 = TEXT
    1.field = header
    1.wrap = <font face="Arial" size="2"><b> | </b></font><br />
   
    2 = IMAGE
    2.file = GIFBUILDER
    2.file {
      XY = [10.w]+10, 28
      backColor = white
      
      10 = TEXT
      10.text.field = header
      10.fontColor = #478951
      10.fontFile = fileadmin/fonts/arialb.ttf
      10.fontSize = 16
      10.offset = 1, 22
    }
    2.wrap = |<br />
    default < .1
  }
  tmp_tt_content_text < tt_content.text
  tt_content.text >
  tt_content.text = COA
  tt_content.text.10 < lib.stdheader
  tt_content.text.20 = TEXT
  tt_content.text.20 {
    field = bodytext
    fieldRequired = bodytext
    wrap = <font face="Arial" size="20">|</font><br />
    parseFunc < tmp_tt_content_text.20.parseFunc
    editIcons < tmp_tt_content_text.20.editIcons
  }
}
mukraker ·
Marco74 schrieb

Wie meinst Du das genau? Der Content soll als Bild dargestellt werden?

fg Marco

na die headline als "IMAGE" so wie es im TS steht

Marco74 ·

hm...gut Content ist für mich eben nicht gleich Headline ;-)

Wieso bastelst denn was eigenes. Das Header-layout 5, welches Du im Formular auswählen kannst ist doch ein Image oder?

Gruss Marco

Marco74 ·

Also wenn Du es selber machen willst, dann folgendes:

Wenn ich es richtig gesehen habe, dann definierst Du lib.stdheader....innerhalb von 10.marks {...

Die definition muss aber ausserhalb sein. Auch ausserhalb von seite {...

Schreib die Definition ganz am Schluss nachdem Du alle Klammern geschlossen hast. Das selbe gilt auch für temp_tt_content.text. Auch dieser Abschnitt muss ausserhalb der Klammern stehen.

So wie Du es jetzt hast, sagst definierst Du eigentlich folgendes:
seite.10.marks.lib.stdheader....
und
seite.10.marks.temp_tt_content.text....

Gruss Marco