[TYPO3-templavoila] Limitation of allowed characters in Typoscript inside a DS

Christian Vetter Christian.Vetter at dragoner-design.de
Fri Mar 24 09:32:20 CET 2006


Hi,
Why do you put so much TS into your DS - you'd be better of putting the  
code into a TS object, like this:
<field_tabbar type="array">
    <tx_templavoila type="array">
      <title>Buttons</title>
      <sample_data type="array">
        <numIndex index="0"></numIndex>
      </sample_data>
      <eType>TypoScriptObject</eType>
      <TypoScriptObjectPath>lib.tabbar</TypoScriptObjectPath>
    </tx_templavoila>
</field_tabbar>

In a TStemplate (which you must include, of course) you'd have this:
lib.tabbar = COA
lib.tabbar {
   wrap = <ul id="tabbar">|</ul>
   10 = RECORDS
   10 {
     wrap = <li><a>|</li></>
     source.field = field_tabone
     tables = tt_content
     conf.tt_content = TEXT
     conf.tt_content.field = header
   }
   20 < .10
   20.source.field = field_tabtwo
   30 < .10
   30.source.field = field_tabthree
}

Thereby everything's cleaner and less cumbersome(you need not edit the DS  
everytime you have to manipulate your TS), plus you can easily reuse your  
code - I'm employing this methods for all but the most basic TS (e.g.  
simply putting images onto the page).

Best regards,
	Christian


Am 23.03.2006, 20:21 Uhr, schrieb Ådne Hovda <aadne at hovda.no>:

> Hi
>
> Is there any specific reason why TV does not render my DS-internal
> ts-object if it contains characters like "<" or "&" and possibly others.
> I'm trying to build a menu of records referenced by a flexform, and
> display it along with those records.
>
> Here is a relevant part of my DS:
>
> <field_tabbar type="array">
>    <tx_templavoila type="array">
>      <title>Buttons</title>
>      <sample_data type="array">
>        <numIndex index="0"></numIndex>
>      </sample_data>
>      <eType>none</eType>
>      <TypoScript>
>      10 = COA
>      10 {
>        wrap = <ul id="tabbar">|</ul>
>        10 = RECORDS
>        10 {
>          wrap = <li><a>|</li></>
>          source.field = field_tabone
>          tables = tt_content
>          conf.tt_content = TEXT
>          conf.tt_content.field = header
>        }
>        20 < .10
>        20.source.field = field_tabtwo
>        30 < .10
>        30.source.field = field_tabthree
>      }
>      </TypoScript>
>    </tx_templavoila>
> </field_tabbar>
>
>
> The strange thing is that this code sort of works, but is unusable since
> I can't insert the html-tags:
>
>
> <field_tabbar type="array">
>    <tx_templavoila type="array">
>      <title>Tabbar</title>
>      <sample_data type="array">
>        <numIndex index="0"></numIndex>
>      </sample_data>
>      <eType>none</eType>
>      <TypoScript>
>      10 = COA
>      10 {
>        10 = RECORDS
>        10 {
>          source.field = field_tabone
>          tables = tt_content
>          conf.tt_content = TEXT
>          conf.tt_content.field = header
>        }
>        20 = RECORDS
>        20 {
>          source.field = field_tabtwo
>          tables = tt_content
>          conf.tt_content = TEXT
>          conf.tt_content.field = header
>        }
>        30 = RECORDS
>        30 {
>          source.field = field_tabthree
>          tables = tt_content
>          conf.tt_content = TEXT
>          conf.tt_content.field = header
>        }
>      }
>      </TypoScript>
>    </tx_templavoila>
> </field_tabbar>
>
>
> Greetings, Ådne
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila



More information about the TYPO3-project-templavoila mailing list