[TYPO3-dev] static_info_tables and "international"

Ingmar Schlecht ingmar at typo3.org
Wed Jan 25 12:18:42 CET 2006


Hi Stefano,

stefano cecere wrote:
> i didn't find any of these in the current static_countries or 
> territories tables (would have been simple to associate uid 1 to 
> "international")
> 
> what do you suggest me: to put the field to 0, and then check manually 
> the international values, or to add 243 to the table?
> wouldn't this be good to go in the official ext?

No, it is actually very good that the static info tables don't contain 
general words like "international" in the country or territories table, 
because mostly you really want people to choose a country and don't want 
to allow choices like "international".

There is however a really simple trick to do exactly what you want using 
negative ids:
For example the "fe_group" access field of page records uses exactly 
that solution. It let's you choose either a FE user group or one of the 
special things with negative IDs "Hide at login" and "Show at any login".
To view it's TCA definition, just use the Tools->Configuration module in 
the Backend and browse to $TCA['pages']['columns']['fe_group']['config']


cheers,
Ingmar




More information about the TYPO3-dev mailing list