[TYPO3-dev] Conditional display for BE

Al Chuck alchuck at yahoo.com
Fri Mar 16 17:33:44 CET 2007


So here is some more details on the question:
I have a few extensions which are available from "Edit Page Properties," Example "Beta Page", "General Options". However want to hide these options available on pages of type pages.shortcut >0  and pages.content_from_pid >0. 

_al


Tapio Markula <tapio.markula at atwebteam.com> wrote: Dmitry Dulepov kirjoitti:
> Al Chuck wrote:
>> I want to have a conditional display for  "Edit Page Properties". by
>> which display or not display some of the form elements for shortcut
>> pages i.e doktype==4.
>>
>> I would prefer doing this on the extension without updating any of
>> the core files.
> 
> Answer depends on how you define condition.

> Generally, field visibility is defined by "types" field in TCA. Read 
> "typo3 core api" document for the description of TCA and "types".

The question was how to define those conditinal. If you define them
normal way in ext_tables.php or tca.php they are not conditional
but just reset through an extension.
And because in those files is not information about who is the user
or what is the page, you can use in those files only installation level
conditions, for example

switch($_EXTCONF['fieldTCApagesType4']) {
 CASE 0:
$TCA['pages']['types']['4']['showitem']=..

break;

 CASE 1:
$TCA['pages']['types']['4']['showitem']=...
...
}

_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev



Al Chuck
alchuck at yahoo.com
 
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.



More information about the TYPO3-dev mailing list