Help needed to display Images in Detail List

nexturejohn

New Member
Hi, I am just starting to use Fabrik under Joomla 3.9, and although I have looked on the Wiki, I am having some trouble in solving what seems to be a stratightforward problem.
In Fabrik I have made a List that is generated from reading a table stored in my Joomla Database.
The list contains a series of elements including one called "PHOTO", whose value identifies a specific image stored in my Joomla filesystem. e.g. if PHOTO=5417, this means I need to show photo_5417.jpg
I wish to be able to display the corresponding image in the list Detail View based on the value of "PHOTO".

This seems to be a straightforward problem, but can somehow please tell me the right parameters to specify and where?

So far I can't get the Detail list to show any image, never mind the right one!
thanks
 
Do you only need to display data from this existing table?
Or do you also want to create new records and upload new photos?

If you only need to display you can add a "Format string" in the field element "Formatting" settings like
<img class="fabrikImg" src="image/your_folder/%1$s">
 
Hi troester, I only need to display data from the existing table, and all the photos are already present in the filesystem.
 
Hi again Troester, I used the Formatting that you sent, and it loaded the images correctly for every row. Thanks.

What I would prefer to do though is, in the List view, to show the table without any images, but for a user to be able to click on an element to open an image directly, without going to the Detail view.

Can you send me an example of a Custom Link I can include in the List View settings for an Element that will do this?

Using the example you sent to me, I would like to provide a custom link that will open "images/your_folder/photo.%1$s"

(I have tried a number of examples I found in the Wiki but I do not sufficiently understand the Fabrik placeholders to get the syntax right!)

thanks again.
 
Hi, still trying to display an image when I click on an element in a List. At present it always go to the Detail view, but I just want to display an image. I have tried to compile the Custom Link in the Element that I click on in the List view, but the syntax is not clear to me. Can somebody please help? Thanks
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top