Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Browsing a DB and displaying images

Featured Replies

I can browse my database and view images online using the [FMP-Image:Picture] tag, but the problem is not all of the records have pictures. When they dont have pictures i get nothing but a space where the pic is suppost to be and an x on top, ie picture not found. This is understandable but I would like a way to put a generic image that says something like "No Picture" rather than having this nasty looking box with an x on top of it. Any ideas?

You can use IF and check for field if is empty or not.

Much faster is to server pictures *not* from FM but from picture directory by normal web server.

  • Author

Can I convert all my pics that are already in FM to a picture directory, and then link them? this sounds kind of complicated I know. And can I have ure aim name so I talk to u when I have problems? mine is gotroot382

Look in the Sample Files forum for the example of images on the web.

something like this to represent image "existance" with a little icons and then link the "Results" to the Deatils.html where you could have the actual image along with the rest of the info:

----------------------

[FMP-record]

[FMP-If: image_field.eq.]

<img src="/images/imageNO.gif" width="18" height="18" border="0">

[FMP-Else]

<img src="/images/imageOK.gif" width="18" height="18" border="0">

[/FMP-If]

<a href="[FMP-LinkRecID: format=Details.html, layout=WEB]">

[FMP-field: Some_record_field]

</a>

[/FMP-record]

--------------------

this way I get the results and know that record has an image or not but you do not have to load all the images (of various sizes) to get your resluts to show not create the "thumbs" of them.....it also speeds up the load of "Results.html" page!

All the best!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.