Skip to main content
Topic: LIST PAGE: how to set a field as file and display as image? (Read 1563 times) previous topic - next topic

LIST PAGE: how to set a field as file and display as image?

Hello all,
I'm building a record management based on existing database and uploaded files.
There is a field that contains a filename (myfile.jpg).
I would like it to show as image in the LIST PAGE. But how?
If I set the field as FILE, there is no file path option.
It seems the only solution is to use CUSTOM instead of FILE and write the code manually.
Please note this project do not need ADD/EDIT or DELETE pages.
Any suggestion?
TIA

Re: LIST PAGE: how to set a field as file and display as image?

Reply #1
@sweetman‍ please set the DisplayType to Image in List Page Field Properties and modify config.php, set your image directory where you find the below code in config.php.
Code: [Select]
// File Upload Directories 
define("UPLOAD_DIR", "uploads/");