File Manager limit to images
Permalink
I'm attempting to use the File Manager from a block to select images but it lists swf-files.
I need images only, because I want to select an image for use as a background for an element.
I open the file manager with this command:
<code>
ccm_launchFileManager( "&fType=" + ccmi18n_filemanager.FTYPE_IMAGE );
</code>
I need images only, because I want to select an image for use as a background for an element.
I open the file manager with this command:
<code>
ccm_launchFileManager( "&fType=" + ccmi18n_filemanager.FTYPE_IMAGE );
</code>
Hi wagdi
Thanks for the attempt :o)
Your solution would be great for a site admin/owner, but we are making this for a block element and would like to be able to restrict the admin/owner of the site, so he can only choose file types that are supported.
Thanks for the attempt :o)
Your solution would be great for a site admin/owner, but we are making this for a block element and would like to be able to restrict the admin/owner of the site, so he can only choose file types that are supported.
This may be it?! it is for me...
http://www.concrete5.org/community/forums/customizing_c5/pre-set_fi...
http://www.concrete5.org/community/forums/customizing_c5/pre-set_fi...
$al->file('fileId2', 'flvID', t('Choose File'), $file, array('fExtension' => 'flv'))?>
Or if the images are in a set then you can just select that set.