[TYPO3-core] RFC: #9109: Enable feature in element browser in rte like in normal one
Steffen Kamper
info at sk-typo3.de
Tue Sep 9 10:45:41 CEST 2008
Hi Stan,
Stanislas Rolland schrieb:
> Hi Steffen,
>
> The original patch by Kasper was setting
>
> $GLOBALS['BE_USER']->addFileMount('', $filePathRelativeToFileadmindir,
> $filePathRelativeToFileadmindir, 1, 0);
>
> As you did for your own patch for the RTE case.
>
> However, a zero value for the fifth parameter is undefined. The fifth
> parameter defines the type of mount. Possible values are 'user' (meaning
> userHomePath), 'group' (meaning groupHomePath) or ''. See
> t3lib_userauthgroup.
>
> The type of mount determines the icon that will be used (see
> t3lib_foldertree). How the additional filemount finally gets a user
> mount icon is a mystery to me. I think it is so by accident.
>
> However, maybe there is an opportunity to define a new type of filemount
> as 'readOnly'. This could be used to set a more meaningful icon and
> allow element browsers to check if the filemount is readOnly or not.
>
thanks for pointing to that. I will investigate this and try with a new
type "readonly" as you suggested.
vg Steffen
More information about the TYPO3-team-core
mailing list