Hey Tolleiv,

try this DS:

...
<field_div_id type="array">
   <type>attr</type>
   <tx_templavoila type="array">
     <title>Div Id</title>
     <sample_data type="array">
       <numIndex index="0"></numIndex>
     </sample_data>
     <eType>none</eType>
     <TypoScript>
# Unique ID for using this FCE more than one time in a page
10 = TEXT
10.dataWrap = fce{register:tx_templavoila_pi1.parentRec.uid}

     </TypoScript>
   </tx_templavoila>
</field_div_id>

<field_headline type="array">
   <tx_templavoila type="array">
     <title>Headline</title>
     <sample_data type="array">
       <numIndex index="0"></numIndex>
     </sample_data>
     <eType>none</eType>
     <TypoScript>
# FCE-header as headline
10 = TEXT
10.data = register:tx_templavoila_pi1.parentRec.header

     </TypoScript>
   </tx_templavoila>
</field_headline>

<field_text type="array">
   <tx_templavoila type="array">
     <title>Text</title>
     <sample_data type="array">
       <numIndex index="0"></numIndex>
     </sample_data>
     <eType>text</eType>
     <proc type="array">
       <HSC type="integer">1</HSC>
     </proc>
   </tx_templavoila>
   <TCEforms type="array">
     <config type="array">
       <type>text</type>
       <cols>48</cols>
       <rows>5</rows>
     </config>
     <label>Text</label>
   </TCEforms>
</field_text>

<field_js type="array">
   <tx_templavoila type="array">
     <title>JS</title>
     <sample_data type="array">
       <numIndex index="0"></numIndex>
     </sample_data>
     <eType>none</eType>
     <TypoScript>
<![CDATA[
# Unique ID using in JavaScript
10 = TEXT
10.data= register:tx_templavoila_pi1.parentRec.uid
10.wrap (
<script language="javascript" type="text/javascript">
fadeIn('fce|');
</script>
)
# Only if field_checkme
10.if.isTrue.field = field_checkme

]]>
     </TypoScript>
   </tx_templavoila>
</field_js>

<field_checkme type="array">
   <type>no_map</type>
   <tx_templavoila type="array">
     <title>Fade In</title>
     <sample_data type="array">
       <numIndex index="0"></numIndex>
     </sample_data>
     <eType>select</eType>
   </tx_templavoila>
   <TCEforms type="array">
     <config type="array">
       <type>select</type>
       <items type="array">
         <numIndex index="0" type="array">
           <numIndex index="0">Yes</numIndex>
           <numIndex index="1">1</numIndex>
         </numIndex>
         <numIndex index="1" type="array">
           <numIndex index="0">No</numIndex>
           <numIndex index="1">0</numIndex>
         </numIndex>
       </items>
       <default>1</default>
     </config>
     <label>Fade In</label>
   </TCEforms>
</field_checkme>
...


and use a templae like this:

<div id="fcebox">               --- ROOT div INNER
<div id="fce001">               ---      div ATTR:id (field_div_id)
        <h3>Headline</h3>       ---      h3 INNER (field_headline)
        <p>Text...</p>          ---      p INNER (field_text)
</div>
<div id="js">                   ---      div OUTER (field_js)
<script type="text/javascript"> fadeIn('fce001'); </script>
</div>
</div>
                                ---      not mapped (field_checkme)


With the helper div "fcebox" you will get the Javascript part inside the 
FCE and this div "fcebox" with the mapping mode "INNER" will not be 
rendered.
Another helper div is the "js"-div because you cannot map a script-element.
With the unique ID of your FCE you can use it more than one time in a page.

I hope this will help :)

Bye and greetings,
Lee

> Hi thanks for your help ...
> 
> but I don't get it .. now i have something like this in my DS:
> 
> <field_passme type="array">
>     <type>no_map</type>
>     <tx_templavoila type="array">
>         <title>Pass</title>
>         <sample_data type="array">
>             <numIndex index="0"></numIndex>
>         </sample_data>
>         <eType>none</eType>
>         <TypoScript><![CDATA[
>             10=TEXT
>             10.value=ABC
>         ]]></TypoScript>
>     </tx_templavoila>
> </field_passme>
> 
> But there is no output anyway -
> it's Typo3 4.1.2 and TV 1.3.3
> 
> Any suggestions?
> 
> Regards
> Tolleiv
> 
> 
> Dmitry Dulepov [typo3] schrieb:
>> Hi!
>>
>> Tolleiv Nietsch wrote:
>>> I'm not sure what you mean with "passthrough field"
>>>
>>> normally i would say that this is a field with Editing Type [NONE] 
>>> which is mapped to some HTML part - but i have a Script-Area and 
>>> without any other container around it and therefore i think i can not 
>>> use such a solution...
>>
>> Correct. Bu I do not see why you need a container for it. Make this 
>> field last, not mappable and passthrough and outtput script there. It 
>> will be at the end of FCE.
>>
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Reply via email to