Zum Inhalt springen

Flash Film wird nicht angezeigt.

Erstellt am 2. April 2009 · 4 Antworten · letzte Antwort am 2. April 2009

Tags: Inhaltselemente, Frage

diso ·

Hallo zusammen,

ich versuche über den Seiteninhaltstyp 'Plain HTML' einen Flashfilm in meinem Projekt anzuzeigen.
Nur wird zur Zeit nur der HTML Source angezeigt.

Folgend mein TScript:

page = PAGE
page {
  config.doctype = xhtml_strict
  bodyTag = <body>
  stylesheet = fileadmin/template/style.css
  meta.AUTHOR = xxx
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/template/temp.htm
  10.workOnSubpart = DOKUMENT
  10.marks {
    language = TEXT
    language {
      wrap = <ul><li class="aktiv"><a href="#">DEUTSCH</a></li><li><a href="#">FRANÇAIS</a></li></ul>
    }
    mainnav = HMENU
    mainnav {
      special = directory
      special.value = 2,12
      entryLevel = 0
      1 = TMENU
      1.noBlur = 1
      1.expAll = 0
      1.wrap = <ul>|</ul>
      1.NO.wrapItemAndSub = <li>|</li>
      1.ACT = 1
      1.ACT.wrapItemAndSub = <li class="aktiv">|</li>
    }
    secnav = HMENU
    secnav {
      1 = TMENU
      entryLevel = 2
      1.noBlur = 1
      1.expAll = 0
      1.wrap = <ul>|</ul>
      1.NO.wrapItemAndSub = <li>|</li>
      1.ACT = 1
      1.ACT.wrapItemAndSub = <li class="aktiv">|</li>
    }
    content-left = CONTENT
    content-left {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 0
    }
    content-right = CONTENT
    content-right {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 2
    }
    headline = CONTENT
    headline {
      table = tt_content
      renderObj = COA
      renderObj {
        20 = TEXT
        20.field = header
        20.wrap = <h1>|</h1>
      }
    } 
    impressum = HMENU
    impressum {
      special = directory
      special.value = 10
      1 = TMENU
      1.noBlur = 1
      1.expAll = 0
      1.NO.wrapItemAndSub = |
    }  
  }
}
tt_content = CASE
tt_content {
  key.field = header_layout
  0 = COA
  0 {
    10 = TEXT
    10.field = bodytext
    10.wrap = |
  }
  1 = COA
  1 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = |
  }
  2 = COA
  2 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = <div style="background:transparent url(fileadmin/template/images/bg-stripe-txt2.png) left top repeat-y;">|</div>
  }
  #nur fuer Bilder
  3 = COA
  3 {
    10 = TEXT
    10.field = bodytext
    10.wrap = |
    20 = IMAGE
    20 {
      file.import = uploads/pics/
      file.import.field = image
      altText = TEXT
      altText.field = imagecaption
      captionSplit = 1
      imgText.field = imagecaption
      imageTextSplit = 1
      borderThick = 0
      colSpace = 0
      rowSpace = 0
    }
  }
  #nur fuer Listen
  4 = COA
  4 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = <div style="background:transparent url(fileadmin/template/images/bg-stripe-txt2.png) left top repeat-y;">|</div>
    30 = IMAGE
    30 {
      file.import = uploads/pics/
      file.import.field = image
      altText = TEXT
      altText.field = imagecaption
      captionSplit = 1
      imgText.field = imagecaption
      imageTextSplit = 1
      borderThick = 0
      colSpace = 0
      rowSpace = 0
    }
  }
  5 = COA
  5 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = |
    30 = IMAGE
    30 {
      file.import = uploads/pics/
      file.import.field = image
      altText = TEXT
      altText.field = imagecaption
      captionSplit = 1
      imgText.field = imagecaption
      imageTextSplit = 1
      borderThick = 0
      colSpace = 0
      rowSpace = 0
    }
  }
}
tt_content.0.10.parseFunc = < lib.parseFunc_RTE
tt_content.1.20.parseFunc = < lib.parseFunc_RTE
tt_content.2.20.parseFunc = < lib.parseFunc_RTE
tt_content.3.10.parseFunc = < lib.parseFunc_RTE
tt_content.4.20.parseFunc = < lib.parseFunc_RTE
tt_content.5.20.parseFunc = < lib.parseFunc_RTE
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class = padding2
#lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes >

wenn ich folgenden Teil weglassen

tt_content = CASE
tt_content {
  key.field = header_layout
  0 = COA
  0 {
    10 = TEXT
    10.field = bodytext
    10.wrap = |
  }
  1 = COA
  1 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = |
  }
  2 = COA
  2 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = <div style="background:transparent url(fileadmin/template/images/bg-stripe-txt2.png) left top repeat-y;">|</div>
  }
  #nur fuer Bilder
  3 = COA
  3 {
    10 = TEXT
    10.field = bodytext
    10.wrap = |
    20 = IMAGE
    20 {
      file.import = uploads/pics/
      file.import.field = image
      altText = TEXT
      altText.field = imagecaption
      captionSplit = 1
      imgText.field = imagecaption
      imageTextSplit = 1
      borderThick = 0
      colSpace = 0
      rowSpace = 0
    }
  }
  #nur fuer Listen
  4 = COA
  4 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = <div style="background:transparent url(fileadmin/template/images/bg-stripe-txt2.png) left top repeat-y;">|</div>
    30 = IMAGE
    30 {
      file.import = uploads/pics/
      file.import.field = image
      altText = TEXT
      altText.field = imagecaption
      captionSplit = 1
      imgText.field = imagecaption
      imageTextSplit = 1
      borderThick = 0
      colSpace = 0
      rowSpace = 0
    }
  }
  5 = COA
  5 {
    10 = TEXT
    10.field = header
    10.field >
    20 = TEXT
    20.field = bodytext
    20.wrap = |
    30 = IMAGE
    30 {
      file.import = uploads/pics/
      file.import.field = image
      altText = TEXT
      altText.field = imagecaption
      captionSplit = 1
      imgText.field = imagecaption
      imageTextSplit = 1
      borderThick = 0
      colSpace = 0
      rowSpace = 0
    }
  }
}
tt_content.0.10.parseFunc = < lib.parseFunc_RTE
tt_content.1.20.parseFunc = < lib.parseFunc_RTE
tt_content.2.20.parseFunc = < lib.parseFunc_RTE
tt_content.3.10.parseFunc = < lib.parseFunc_RTE
tt_content.4.20.parseFunc = < lib.parseFunc_RTE
tt_content.5.20.parseFunc = < lib.parseFunc_RTE
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class = padding2
#lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes >

dann wird der Film abgespielt.Jedoch brauche ich das für meine Formatierung des Inhalts.

kann mir jemand sagen wie ich mein TypoScript erweitern muß damit der Film zu sehen ist?
Muß ich evtl etwas bei den Constant Editor einstellen?

Vielen Dank für eure Hilfe.

diso ·

Das ist ein guter Tipp.
Wie funktionieren diese dann?

Es scheint ja auch nicht möglich zu sein diese Filme über den Seiteninhaltstyp 'Multimedia' einzufügen.

Ich versuche jetzt meine Inhaltsbeschreibung im ObjectBrowser zu definieren.
Das hatte ich jetzt mal bei einer Testseite ausprobiert für die ich ein Ext-Template angelegt habe.

Das TScript würde dann ungefähr so aussehen.

tt_content.text = CASE
tt_content.text.key.field = header_layout

tt_content.text.0 = COA
tt_content.text.0.10 = TEXT
tt_content.text.0.10.field = bodytext
tt_content.text.0.10.wrap = |
tt_content.text.0.10.parseFunc = < lib.parseFunc_RTE

tt_content.text.1 = COA
tt_content.text.1.10 = TEXT
tt_content.text.1.10.field = header
tt_content.text.1.10.field >
tt_content.text.1.20 = TEXT
tt_content.text.1.20.field = bodytext
tt_content.text.1.20.wrap = |
tt_content.text.1.20.parseFunc = < lib.parseFunc_RTE

tt_content.text.2 = COA
tt_content.text.2.10 = TEXT
tt_content.text.2.10.field = header
tt_content.text.2.10.field >
tt_content.text.2.20 = TEXT
tt_content.text.2.20.field = bodytext
tt_content.text.2.20.wrap = <div style="background:transparent url(fileadmin/template/images/bg-stripe-txt2.png) left top repeat-y;">|</div>
tt_content.text.2.20.parseFunc = < lib.parseFunc_RTE

Falls das dann später funktioniert gebe ich bescheid, ansonsten werde ich mir wohl diese Extensions ansehen müßen.
Kannst Du eine Empfehlen?

kolki ·

Ich möchte deinen Tatendrang bestimmt nicht bremsen, aber der Einsatz einer ensprechenden Extension ist zu empfehlen.
Es gibt viele Player, die sehr gut funktionieren. Ich habe flvplayer2 und mediacenter im Einsatz. Ich habe auch schon viele andere getestet, sie funktionierten alle ziemlich klaglos.

Mit dem Inhaltstyp Multimedia geht kein Flash, hier könnte man aber Mpeg-Filme verwenden.

diso ·

Achso nochetwas. Es handelt sich hier nicht direkt um Filme. Wie FLV Bspweise.
Es geht um SWF Objecte.

//also es funktioniert nun auf meine vorhin beschriebene art und weiße.
ich werde mir dennoch solche Extensions ansehen.Beim nächsten T3 Projekt muß es ja nicht so kompliziert sein.