MetAtroN wrote:Apologies for not being specific - I'm developing this from scratch, it's a database, not book reader. It's a SQL database in the background, that will hold data about my home library (author, title, ISBN, number of pages and so on). I thought that I could use Files as a nice frontend for this. I could store covers in a folder and my question here is would it be possible to open a page when I click on a cover rather than zoom the image. Page would be generated by php based on the book ID (cover filename)? What do you think?
Ok, understood. There is already an option in Files app to open links directly in new browser window (or popup) instead of "zoom" or "modal" preview. In your case, it would have been most optimal with an option to define custom links, for example 'item_link' => '/book.php?book={{clicked_file_path}}'. This option does not exist (I would need to consider it), but in the meantime you could perhaps achieve it with something like this:
1. Set option
'click_window' => 'jpg', which means it would open the book image cover jpg in new browser window (optionally popup window).
2. Instead of the above, you want to open your PHP book app of course. This could be achieved with rewrite rule (for example in Apache .htaccess) that rewrites
path/to/bookname.jpg => /book.php?path/to/bookname.jpg.
3. With the above in place, your book.php app should be able to use the query to retrieve and display info for the book.
So, I guess it should be possible at least.