[TYPO3-german] Typoscript section_frame: header und bodytext separat wrappen

Stephen Bungert stephenbungert at yahoo.de
Thu Jun 21 15:23:55 CEST 2012


Ich wrede es anders machen.

Ich werde eine neu Header type machen und ein neue Frame wrap, die beiden 
mussen dann zusammen benutzt, so (ungetestet):

Page tsconfig
---

# Headers Type
TCEFORM.tt_content.header_layout {
 addItems {
  200 = Accordion Header
 }
}

# Frame Wrap
TCEFORM {
  tt_content {
    section_frame {
      addItems.200 = Accordion
    }
  }
}






TS Template
---

# Header type
lib.stdheader.10.200 < lib.stdheader.10.1
lib.stdheader.10.200.fontTag = <h5>|<span class="ui-icon 
ui-icon-double-arrow-closed"></span></h5><div class="content">
# <div class="content"> is the start of the wrap for the content of the CE

# Wraps for CE 'frame' field
tt_content.stdWrap.innerWrap.cObject {
  200 = TEXT
  200.value = <div class="accordion-with-bg">|</div></div>

# The first </div> after the | is the closing of the content div





Stephen.


"Robert Wildling" <robertwildling at gmail.com> schrieb im Newsbeitrag 
news:mailman.1.1340283370.1671.typo3-german at lists.typo3.org...
> Hi, Leute,
>
> Ich verwende grad mal wieder mehrere section frames, wobei einer davon 
> einen zusätzlichen wrap beim bodytext benötigt (damit jquery accordion 
> funktioniert). Dazu habe ich versuchsweise mal COA verwendet:
>
> tt_content.stdWrap.innerWrap.cObject = CASE
> tt_content.stdWrap.innerWrap.cObject {
>   key.field = section_frame
>
>   [...]
>
>   113 = COA
>   113 {
>     5 = TEXT
>     5.value = <div class="accordion-with-bg">
>
>     10 >
>     10 = TEXT
>     10.field = header
>     10.wrap = <h5>|<span class="ui-icon 
> ui-icon-double-arrow-closed"></span></h5>
>
>     15 >
>
>     20 >
>     20 = TEXT
>     20.field = bodytext
>     20.parseFunc < lib.parseFunc_RTE
>     20.wrap = <div class="content">|</div>
>
>     30 >
>
>     99 = TEXT
>     99.value = </div>
>   }
>
>   [...]
> }
>
>
> Das funktioniert soweit auch, nur wird der Standard-Prozess der 
> Inhaltsgenerierung trotzdem ausgeführt, weswegen der Inhalt 2x auftaucht.
>
> Daher meine Frage: Wie kann man in so einem Fall verhindern, dass der 
> Content 2x gerendert wird?
>
> Danke für eure Hilfe!
>
> LG, Robert 




More information about the TYPO3-german mailing list