Show image in table with CC 6

How to display an image in a table view in ChronoConnect 6.

Overview

The issue occurs because the file name stored in the database is shown without the correct file path.
Add an HTML view to the table view's columns and reference it, then use the HTML view to construct the full image path dynamically.

Answered
Connectivity v6
Tw Twincarb 16 Feb, 2017
I have just tried out the new CC 6 and a lot of it makes sense, looking forward to the How To section being expanded upon in the future.

What I can't figure at the moment is the method to show an image in the table view (or else where) it's been a long time since I did it for CC5.

At the moment I can see the file name as stored in the db, but can't figure out how to get it to add the file path.

Regards,
Dave
Max_admin Max_admin 17 Feb, 2017
Answer
Hi Dave,

Add an html view then in the "Columns views" in your table view, call the htmnl view: {view:html_view_name}

Now in the html view use this code:
<img src="path/to/your/image/{var:table_view_name.row.Model.image_field}" />


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Tw Twincarb 17 Feb, 2017
Thanks Max,

I was part way there trying to do it without the html field 🤔 Working as I was expecting now. CC6 seems to make light work of creating connections and displaying data.

Regards,
Dave
This topic is locked and no more replies can be posted.