[TYPO3-dev] Hide flexform field with typoscript in TSconfig

Peter Russ peter.russ at 4many.net
Mon Mar 23 11:51:35 CET 2009


--- Original Nachricht ---
Absender:   Steffen Kamper
Datum:       23.03.2009 11:43:
> Hi Masi,
> 
> Martin Kutschker schrieb:
>> Steffen Kamper schrieb:
>>> Hi Masi,
>>>
>>> Martin Kutschker schrieb:
>>>>> TCEFORM.tt_content.pi_flexform./ROOT/el/what_to_display.disabled = 1
>>>> Does this work with sections? IIRC that was one of Dmitry's concerns.
>>>>
>>> it could work with sections. But it doesn't make sense to configure one
>>> array element in a section this way.
>>
>> I don't use them, so I wouldn't know ;)
>>
>> As for the syntax. Do we need the ROOT? Shouldn't we have the sheet 
>> instead?
>>
>> TCEFORM.tt_content.pi_flexform./sheetname/el/fieldname.disabled = 1
>>
>> Or even simpler:
>>
>> TCEFORM.tt_content.pi_flexform.sheetname/fieldname.disabled = 1
>>
>>
> 
> i looked to some existing flexforms, sheets are optional (structure can 
> start with ROOT/el). So i simply followed the path of the XML tags
> The beginning slash can be omitted, but could be used as "starting from 
> root" and as identifier of upcoming xpath.
> 
> simplifying the syntax would add complexity to parsing, so i'm fine with 
> any syntax that works exact the way it should.
> 
>>>> And are slashes allowed in TS? Probably not, but would it be dangerous
>>>> to allow them?
>>> i don't see a danger, which concerns do you have?
>>
>> I don't see any. I was only asking if there are any concerns.
>>
> 
> me too, no concerns from my side.

Sounds good. And who will implement that or how to start with that?

Peter.


-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ




More information about the TYPO3-dev mailing list