[TYPO3-templavoila] Change TS template in different TV template objects

Mats Ole Torbeck MOTO.Nord at gmail.com
Tue Aug 22 10:17:36 CEST 2006


Hi Uwe!

Am Montag, 21. August 2006 21:47 schrieb Uwe:
> I have a TemplaVoila problem
>
> I want to change my TypoScript-Template in case I use another
> TemplaVoila Template Object for a page. I found the field
> "local processing (xml)" in the Template Object dataset. How do
> I use this field for this?

I do not fully understand your problem. From a glance I would 
suggest to use conditions for the different states of a link with 
a special behavior. An example is found as print link in the 
FTB-Tutorial. As far as I understood,  local processing is meant 
for the manipulation of form-elements and their behavior in the 
backend.

>
> I found the following code, but it does not work, nothing
> changed: <T3DataStructure>
>   <ROOT>
>    <el>
>     <field_content>
>      <tx_templavoila>
>       <TypoScript>
> # Seiten-Optionen
> lib.siteOptions = COA
> lib.siteOptions {
>      10 = TEXT
>      10.value = Drucken
>      10.wrap = <a href="drucken.html"><img
> src="fileadmin/templates/images/quadratbl.gif" alt="Blaues
> Quadrat" width="8" height="6" border="0">|</a>&nbsp;&nbsp;
>      20 = TEXT
>      20.value = Per EMail verschicken
>      20.wrap = <a href="mail.html"><img
> src="fileadmin/templates/images/quadratbl.gif" alt="Blaues
> Quadrat" width="8" height="6" border="0">|</a>&nbsp;&nbsp;
>      30 = TEXT
>      30.value = Autor kontaktieren
>      30.wrap = <a href="kontakt.html"><img
> src="fileadmin/templates/images/quadratbl.gif" alt="Blaues
> Quadrat" width="8" height="6" border="0">|</a>
> }
>       </TypoScript>
>      </tx_templavoila>
>     </field_content>
>    </el>
>   </ROOT>
> </T3DataStructure>

Here you just defined 3 hardcoded links, which are not shown in 
the backend ? Perhaps you need three input fields, to manage 
their link-target in the backend? Then you should use a field 
content for the Template Object and then build an additional 
Flexible Content Object to maintain the contents of these fields 
in the backend.

>
> I cannot use the Data Structure, because I have only one data
> structure for all templates.

This is not mandatory. You may use more than one, if you like.

-- 
Best regards,

Miriam Torbeck

ICQ: 229832969
http://torbeck.de       



More information about the TYPO3-project-templavoila mailing list