[TYPO3-dev] Conditional display for BE

Al Chuck alchuck at yahoo.com
Fri Mar 16 18:50:29 CET 2007


Tapio - you just partly answered my question.
First to clarify, what I meant by pages.shortcut>0, is the shortcut field in "pages" table.
" user and page is unknown in the state," , they are unknown at "ext_tables.php" ?
which means something like this can be done on ext_tables.php :
$query = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages'. 'shortcut>0 and content_from_pid>0', '', ''. '');

But I am not able to access $GLOBAL on ext_tables.php. 

_a

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
 
---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.



More information about the TYPO3-dev mailing list