[TYPO3-dev] SysFolder, Contains Plugin, $ICON_TYPES
Steffen Kamper
info at sk-typo3.de
Thu Jan 1 13:22:59 CET 2009
Hi Uschi,
Uschi Renziehausen schrieb:
> Happy New Year to all,
>
from me too!
> I would like to modify the items in the list that shows up under
> Contains Plugin which in itself should not be a problem. Of course I
> would like to have special icons for my SysFolders if they e.g. contain
> the plugin Acronym. Reading the Core Api [1] I found out that this is
> done with the global array $ICON_TYPES. Unfortunately the documentation
> also says that the usage of that array is deprecated. So here my questions:
>
where does it says that? I don't see any clue for it.
> 1) Is there an alternative way to get a special icon for SysFolder with
> field module set to x? If so, can you point me into the right direction?
yes, sure. This is the field "module" in page record, and if an icon is
defined for the entry it will be displayed.
You can add your own icon there by defining this in your extTabls.php:
$TCA['pages']['columns']['module']['config']['items'][] =
array('MySpecialIcon', 'specialI');
$ICON_TYPES['specialI']{'icon'} = 'gfx/i/domain.gif';
for any reason the module name (specialI) is limited to 10 Chars.
> 2) If not, for how long will it be safe to use $ICON_TYPES?
see above, no change is planed imho
> 3) Can I ensure somehow that for a SysFolder with the e.g. value news
> only News Items will be allowed?
>
there is no check for this. You can do something simular with pageTS like
mod.web_list.allowedNewTables = pages, tt_news
(note: you only can change the "create"-icon here, technically there is
no restriction with createNew, eg. you can paste a record from clipboard)
vg Steffen
More information about the TYPO3-dev
mailing list