This topic is locked

Thumbnails on List Page

3/2/2022 8:26:59 AM
PHPRunner General questions
M
mkirgiz author

Hi,

I have a project that manages residence and tennants.

For instance I have a list page that lists all apartments.
In every apartment there are more than one tennants living usually.

My goal is a create a view list that lists every apartment and also in every row
lists the small thumbnail photos of the tennants as an array. Simply it should look like as follows:

Apartment Nr. Block Floor Door Nr. Tennants
1234 A 22 12205 [Photo1] [Photo2] [Photo3]

I have all related tables such as apartments, apartment_details, tennants, tennant_details.

If anybody can give an idea anyway around this that would be really appreciated.

Thanks.

K
kohle 3/2/2022

Hi,

one way is :

phprunner supports that you add/view more than one picture for a record. The infos about the pictures phprunner
stores in an alphanumeric table field

In the table define a varchar or text field big enough, for ex. varchar(2000)
In the fields page click on the button with the 3 points and change the property for the field to "File/Image" on the "edit as" tab
and on the "view as" tab to "Image".
Now take a look at the properties you can set, like max. number of files (edit as tab),
and at "view as " tab page you can define how you see the thumbnails.

On the add page you can add more than one image depend what you defined in mx. number of files.
Same at the edit page.

rgs
J.