[TYPO3-dev] Conditional display for BE

Al Chuck alchuck at yahoo.com
Fri Mar 16 20:17:31 CET 2007


where do I use this? tables.php?


$TCA['pages']['types']['2']['showitem']='hidden;;;;1-1-1, 
doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, 
--div--, abstract;;5;;3-3-3, keywords, media;;;;4-4-4, --div--, 
TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, fe_login_mode, 
module, content_from_pid';


Tapio Markula <tapio.markula at atwebteam.com> wrote: Al Chuck kirjoitti:
> 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. 



I don't fully understand you, but below is example how to define, which 
fields are visible for the page type 2

$TCA['pages']['types']['2']['showitem']='hidden;;;;1-1-1, 
doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, 
--div--, abstract;;5;;3-3-3, keywords, media;;;;4-4-4, --div--, 
TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, fe_login_mode, 
module, content_from_pid';

I don't understand what you mean by "pages.shortcut >0  and 
pages.content_from_pid >0"

If you mean on the base of certain values, I think this is not possible.
in ext_tables.php and tca.php you can just conditions, which base on
ext_conf_template.txt, because the user and page is unknow in the state,
where these files has been read.
_______________________________________________
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
 
---------------------------------
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.



More information about the TYPO3-dev mailing list