[TYPO3-dev] Conditional display for BE

Al Chuck alchuck at yahoo.com
Fri Mar 16 20:14:50 CET 2007


How about $TCA? This is available after  t3lib_div::loadTCA("pages");
How can I search for fields "shortcut" and then do the following:
3lib_extMgm::addTCAcolumns("pages",$tempColumns,1);

thank you,
_a

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

AFAIK yes. I tried once for BE_USER based condition but found that the
information is not read, when ext_tables.php has been read.
I presume that the same concerns TS config for pages too.
ext_tables.php has basic level conditions and they are read, when you 
*login*.

> 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', '', ''. '');

because you are not seaching for certain page id, at that respect no 
problem.

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

they you can't do conditions based on $GLOBALS.
_______________________________________________
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
 
---------------------------------
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.



More information about the TYPO3-dev mailing list