[TYPO3-project-4-3] XML support in TS

Martin Kutschker masi-no at spam-typo3.org
Fri Mar 20 15:08:15 CET 2009


Steffen Kamper schrieb:
> Hi,
> 
> if you have a field in DB where data is stored in XML it's not possible
> to use this in TS.
> Of course this is a special of Templavoila, but this extension is heavy
> in use, also there are flexform data.
> 
> What do you think about Xpath support in TS?
> 
> There is a simple extension called best_getflexfield, which does this in
> a few lines, that shows that it's not so complex. To give you a short
> example how it's used here is one:
> 
> lib.flexcontent = CONTENT
> lib.flexcontent {
>     table = tt_content
>     select {
>         pidInList = this
>         where = tx_templavoila_to IN(7)
>         max = 1
>     }
>     renderObj = USER
>     renderObj {
>         userFunc = tx_bestgetflexfield_pi1->getFieldValue
>         dbField = tx_templavoila_flex
>         flexField = field_xyz/el/field_abc
>         # default value is sDEF
>         sheetPointer = sDEF
>         # default value is lDEF
>         language = lDEF
>         # default value is vDEF
>         valueDef = vDEF
>     }
> }
> 
> For sure this could be integrated in TV, but i think it could be useful
> for core in generally.

The syntax looks not like general XPath to me. Do we need those
sheetPointer et al properties? If so, does it make sense to support
standard Xpath and a special version for flex form fields?

Masi


More information about the TYPO3-project-4-3 mailing list