Layout with tiles

Hello, I am new to this forum and not yet completely familiar with Filemaker, perhaps the question I am asking here has been addressed before.

Being a vinyl enthusiast, I have created a database of my music collection. Each record contains information about the LP and has an image of the corresponding cover. I think it would be nice to create a tile view in the layout based on these images. The list view does not work for this purpose. Is it better to use the form view and if so, how do I set it up? Or should I set it up in a completely different way? Hopefully you can provide me with tips and tricks.

Kind regards,
Gertjan.

1 Like

While there is no native layout object tool to build this tile display in FileMaker (which is a real shame!) There are still ways to achieve this through the use of a Web Viewer and Javascript.

https://community.claris.com/en/s/question/0D50H00006dsn3ASAQ/making-a-grid-of-photos

This thread has quite a lot of detail about how you could achieve this along with various example files.

2 Likes

Thank you for your response. It is becoming clear that this is not an easy fix.

The cover images could be stored in a container field (a blob). That can be sized and placed in the list or form view or even a portal

But to create tiles like on a streaming TV service you could use multiple portals and set the starting record for each portal incremented ahead one.

Another alternative would be to create a table with a bunch of container fields. It could even be a virtual list structure with say 7 container fields per record , set in a list view

Sorry no direct tile structure …….

Repeating container global and scripts. Better in terms of performance.

I agree that this is the sort of thing that seems to be screaming out for a web viewer solution. Lots more snazziness to be had, among various other advantages.

As far as rendering it without a web viewer, I also was thinking about one-row portals, but was, admittedly, concerned about performance. The approach that I was pondering was to use summary parts to group records into rows -- probably not too different from a virtual list approach.

ImageTileSummary.fmp12.zip (1.2 MB)

5 Likes

Steve, that's lowkey genius.

1 Like

Lovely solution. I was thinking of grouping via a virtual list or by unstored calcs but hadn't had time to play.

You know the next question we have is how to sort them, don't you? :wink:

1 Like

Exactly! -- Questions I have:

  • How to handle sorting
  • What steps are necessary to refresh the tile screen if the found set changes

Regarding the second question:

If I start omitting records in the tile layout, the display goes bad. Not surprising, but I was hoping that re-running the sort, and maybe some kind of window/portal refresh would make it look nice again. And, yet, I wasn't able to make that happen in the few things that I tried. That said, going back to the form layout, and then re-running the tile view script seems to work, but I was hoping for less.

Edit: Even re-running the tile script doesn't seem to always work when the found set changes. So (at least in v18/MacOS) there seems to be a need to give the portals a good hard kick to get them to refresh.

Edit 2: Using @weetbicks's technique to kick the relationship worked. I had to add one global field to the table, but now the re-renders seem to work as desired. Thirteen years later, I still love that blog post.

take a look also at the following now its free and unlocked

2 Likes

Thanks for all your help and suggestions.

Love it !

1 Like