Zum Inhalt springen

Title und Subtitle kombinieren

Erstellt am 25. Februar 2007 · 7 Antworten · letzte Antwort am 3. März 2007

Tags: Frage

Tarta ·

Hallo zusammen,

suche jetzt schon ewig, konnte aber nirgendwo eine Lösung für folgenden Wunsch finden (sofern es möglich ist).

Ich möchte gerne für meine Titelgrafik folgendes realisieren:

Als Text soll der title eingefügt werden.
Falls der subtitle nicht leer ist, soll er drangehängt werden

=> title - subtitle

Ist das irgendwie möglich?

Vielen Dank im Voraus.

Stefan

Tarta ·

OK, soweit schonmal danke für den Tipp. Ich habe das jetzt entsprechend zusammengebaut, und mit reinem Text (außerhalb der GIFUBILDER-Grafik) funktioniert das auch schon.

Scheinbar mache ich bei der Einbindung etwas falsch:

page.10.marks.TITELGRAFIK = IMAGE
page.10.marks.TITELGRAFIK.file = GIFBUILDER
page.10.marks.TITELGRAFIK.file {
  XY = 600,30
  transparentBackground = 1
  10 = COA
  10 {
    10 = TEXT
    10.field = title
    20 = TEXT
    20.field = subtitle 
    20.wrap =  - |
    20.if {
      isTrue.field = subtitle
    }
  }    
  10.fontFile = fileadmin/design/fonts/syntax.ttf
  10.fontSize = 18
  10.offset = 2,20
  10.fontColor = #7192bb
}

Woran kann das liegen?

just2b ·

Hallo,

das geht leider nicht ganz so, weil es im IMAGE kein COA gibt,
also das ganze einfach so machen:

...

10=TEXT
			10 {
				text.align = right
				text.field = title
				text.case = upper
				offset= 75,25
				fontColor = #FFFFFF
				fontFile= fileadmin/fonts/GOTHICB.TTF
				fontSize= 17  
				#antiAlias = 1    
			}		
		20 = TEXT 
		20 {
				text.align = right
				text.field= subtitle
				text.case = upper
				offset = [10.w]-[20.w]+75,38
				fontColor = #FFFFFF
				fontFile= fileadmin/fonts/arial.ttf
				fontFile= fileadmin/fonts/verdana.ttf
				fontSize = 7
				#fontSize = 8
...

georg

Tarta ·

Vielen Dank für die Hilfe Georg, mit einer geringfügigen Abwandlung funktioniert es jetzt!

page.10.marks.TITELGRAFIK = IMAGE
page.10.marks.TITELGRAFIK.file = GIFBUILDER
page.10.marks.TITELGRAFIK.file {
  XY = 600,30
  transparentBackground = 1
  10 = TEXT
  10 {
    text.field = title
    offset = 2,20    
    fontFile = fileadmin/design/fonts/syntax.ttf
    fontSize = 18
    fontColor = #7192bb
  }
  20 = TEXT
  20 {
    fontFile = fileadmin/design/fonts/syntax.ttf
    fontSize = 18
    fontColor = #7192bb    
    text = -
    offset = [10.w]+10,20
    if {
      isTrue.field = subtitle
    }
  }
  30 = TEXT
  30 {
    fontFile = fileadmin/design/fonts/syntax.ttf
    fontSize = 18
    fontColor = #7192bb    
    text.field = subtitle
    wrap =  - |
    offset = [10.w]+[20.w]+15,20
    if {
      isTrue.field = subtitle
    }
  }      
}

Stefan

just2b ·

Hallo Stefan,

ja ich hab mir nicht die mühe gemacht, das noch korrekt an deine Bedürfnisse anzupassen 😉

noch ein schönes wochenende
georg