[Typo3-dev] how to extend _Typoscript_ itself
tapio
tapio.markula at dnainternet.net
Wed Sep 7 20:06:16 CEST 2005
Wolfgang Klinger wrote:
> Hi!
>
> On Wed, 07 Sep 2005, tapio wrote the following:
>
>>But it supports just partial XCLASS.
>>I can't extend 'class tslib_cObj' or any other class
>>becaus there is no class starting with 'SC_'.
************* off topic starts ******************
>
> I always try to understand what you write - really, but it's so hard,
> sometimes I just don't get it.
> Either it's your confusing English or something else, I don't know, as
> I've never met you face to face, but please try to improve something.
> I become angry if I read your posts after a long hard day and others
> become aggressive and start shouting at you (virtual)!
I have not good English - sorry about that.
> Please try to change your way of communication!
I have tried to write as normally as I can.
************* off topic ends ******************
> Why can't you extend tslib_cObj? What has it to do with this "SC_"
> thing?
AFAIK extending existing classes works at this principle
class ux_SC_someClass extends SC_someclass {
>
>
>>Is there then a way to add new TS without modifying that file but just
>>writing some new TS defining a file for this key:
>>
>>$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_content.php']);
> Don't get that.
In the end of php-files is commonly a key for XCLASS implementations.
>>if(isset($_GET['noView']) &&
>>$this->modTSconfig['properties']['panelFEdisableButton']['save']==0)
>
>
> Simply
> ---
> print_r($this->modTSconfig);
I know. But I want to define *new* items.
if(isset($_GET['noView']) &&
$this->modTSconfig['properties']['panelFEdisableButtonSave']==0)
work with
mod.xMOD_alt_doc{
panelFEdisableSave=1
}
and disables the 'Save' button in FE editing.
> shows you the content of this array
the question was how to add an array element that it could work with
work with *this* syntax:
mod.xMOD_alt_doc{
panelFEdisable.save=1
}
More information about the TYPO3-dev
mailing list