[TYPO3-templavoila] own styles for special content elements with TemplaVoila and css_styled_content

Daniel Wissensbach schebima at gmx.de
Wed Dec 14 17:33:12 CET 2005


I Found the solution.

I have overlooked, that it is possible to use "content element" within 
an FCE.
I thought before that it is only possible to use text, header , picture 
elements for fce.
Because when you create a new content for a content element within a 
FVE, it is only possible to select a record not to create a new one.
You first have to save the the created content and after that it is 
possible to create a new record within this new content element.

Bye,

Daniel

Daniel Wissensbach schrieb:
> Dear Typo3 and TemplaVoila friends,
> 
> I am a newbie to TemplaVoila, but I get all informations and all 
> articles and books I goot get about TemplaVoila.
> 
> But I could not get any informations how to set up own divs for special 
> "content elements".
> 
> I want to define special divs foe headers and content text only in 
> special "content elements".
> 
> 
> 
> 
> my template file looks like:
> ......
> <div class="content">
>     <div class="startboxen">
>         <div class="box">
>             <div class="boxheader">Header Box1</div>
>             <div class="boxcontent">Content Box1</div>
>         </div>
>         <div class="box">
>             <div class="boxheader">Header Box2</div>
>             <div class="boxcontent">Content Box2</div>
>         </div>
>     </div>
> </div>
> ......
> 
> but css_styled-content with templavoila is changing this to:
> 
> <div class="content">
> <div class="startboxen">
>     <!--  CONTENT ELEMENT, uid:7/text [begin] -->
>     <a name="7"></a>
>     <!--  Header: [begin] -->
>         <div class="csc-header csc-header-n1">
>             <h1 class="csc-firstHeader">test 1 header</h1>
>         </div>
>     <!--  Header: [end] -->
> 
>     <!--  Text: [begin] -->
>         <p class="bodytext">test 1</p>
>     <!--  Text: [end] -->
> 
>     <!--  CONTENT ELEMENT, uid:7/text [end] -->
> 
>     <!--  CONTENT ELEMENT, uid:5/header [begin] -->
>     <a name="5"></a>
>     <!--  Header: [begin] -->
>         <div class="csc-header csc-header-n2">
>             <h1>test header</h1>
>         </div>
>     <!--  Header: [end] -->
> 
>     <!--  CONTENT ELEMENT, uid:5/header [end] -->
> 
> 
>     <!--  CONTENT ELEMENT, uid:6/text [begin] -->
>         <a name="6"></a>
>         <!--  Text: [begin] -->
>             <p class="bodytext">test text</p>
>         <!--  Text: [end] -->
> 
>     <!--  CONTENT ELEMENT, uid:6/text [end] -->
>         </div>
> 
> Of course I can define a default value for alle header:
> 
> temp.stdheader = CASE
> temp.stdheader.default < lib.stdheader
> temp.stdheader.default.10.1.fontTag =
> temp.stdheader.default.stdWrap.dataWrap= <div class="boxheader"> | </div>
> lib.stdheader >
> lib.stdheader < temp.stdheader
> 
> but I want to to this only for special content elements, not for the 
> whole document.
> 
> in the old column system it was easy, because I could select for which 
> column I want to define it:
> for example:
> 
> temp.stdheader.2 < lib.stdheader
> temp.stdheader.2.stdWrap.space = 0|0
> temp.stdheader.2.10.stdWrap.wrap >
> .......
> 
> But how can I define it for "content elements" with TemplaVoila?
> 
> Would be glad to get any tipps or help
> 
> best regards,
> Daniel



More information about the TYPO3-project-templavoila mailing list