• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Styling the download link container

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.

Code:
        if ($params->get('fu_download_append', '0') === '1')
        {
            return $render->output . '<div class="fabrik-fu-list-download">' . $downloadHTML . '</div>';;
        }
        else
        {
            return $render->output;
        }
 
I agree. But I guess Hugh had some good reasons ! :)
Thanks for committing it anyway
 
in the same file, to avoid a notice for undefined key (don't know why the function is called with invalid '$i' ...), around line 940 :

Code:
                if (array_key_exists($title_name, $thisRow))
                {
                    if (!empty($thisRow->$title_name))
                    {
                        $title = $thisRow->$title_name;
                        $title = FabrikWorker::JSONtoData($title, true);
                        $title = array_key_exists($i, $title) ? $title[$i] : '';
                    }
                }

Also, it seems the layout file "fabrik-element-fileupload-downloadlink.php" when used in "append" context could not been overridden. I did not success where as the file "fabrik-element-elementlist-details.php" overrides well on the same site (different list).
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top