[TYPO3-dev] Conditional display for BE
Tapio Markula
tapio.markula at atwebteam.com
Fri Mar 16 18:34:50 CET 2007
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.
More information about the TYPO3-dev
mailing list