lcollong
FabriKant d'applications web
Hi,
There is a new feature on the fileUpload Element which allow to add a download link under the image (append).
This is a very useful one as you can both display a thumb image from a non protected directory and use the ajaxify download link for the real image from an htaccess protected directory.
However this feature is surrounded by a div without a class which would allow some better rendering. (float left/right for example).
So I did a very simple hack that I think would be helpful for others also around line 1000 of the file plugins/fabrik_element/fileupload/fileupload.php. Class name could be changed.
There is a new feature on the fileUpload Element which allow to add a download link under the image (append).
This is a very useful one as you can both display a thumb image from a non protected directory and use the ajaxify download link for the real image from an htaccess protected directory.
However this feature is surrounded by a div without a class which would allow some better rendering. (float left/right for example).
So I did a very simple hack that I think would be helpful for others also around line 1000 of the file plugins/fabrik_element/fileupload/fileupload.php. Class name could be changed.
Code:
if ($params->get('fu_download_append', '0') === '1')
{
return $render->output . '<div class="fabrik-fu-list-download">' . $downloadHTML . '</div>';;
}
else
{
return $render->output;
}