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.

serving container image to webpage lasso 7.1?

Featured Replies

Hi All.

I'm quite new to lasso and I have a problem getting images from a filemaker database to a webpage. I use lasso studio for dreamweaver and have no problems getting the other fields from my database. But I have tried to get an image from a container field but no luck. I have a search page that works, a resultpage that works and displays all the found records. But I just can't get the image from the container field for each record displayed. Anyone know the tag/code to do it?? Any help would be great.

Thanks

The Dog

Howdy... Until someone else comes along and posts a solution for you, you may want to consider NOT storing images in container fields. I think larger databases, especially, will benefit from storing the PATH TO IMAGES rather than the images themselves. Relatively small databases with low-res graphics probably won't make much of a difference, but I think more images at higher resolutions could start causing performance issues. I think posts by Jeff Spall and/or Reed may have helpful information on this topic, too. Or search the posts for "+image +server" or "+picture +server" or somethng similar.

As for your question, I do not know LDML but I wouldn't think you'd have to have different code for displaying a container field. I can't recall, but I think CDML (and certainly IWP) just shows the image when the field is shown... if no one responds with the answer or if I have time when I get home, I'll try to check how FM does it in CDML.

--ST

AAAAAUUUUUGGGGHHHHH!

I am in the same boat. We go from something simple in CDML like [FMP-IMG:fieldname] to all kinds of COMPLICATED stuff in LDML. I have been working on the simple problem of getting a single image in a container field to show on a web page using Lasso

So far, absolutely no luck. Well let me change that, I could get it to work with lasso and FM6, but not with Lasso and FMSA7.

Larry

  • Author

Hi Ibiubu

I too had it working fine on an earlier version of lasso. But just can't get it to work in lasso 7. I get an missing image icon or the alt text if I included that tag in the code..

I think Blue World should release a better example site/database. The one with the installation is too basic for other than testing it works...... You can't learn much from it. Too bad...

I just hate to have to keep track of image names and locations on the disk. Would be much easier with container images.....

The Dog

Still working on this, but I am getting closer. Pretty complicated procedure to get it to work though. And the only way it seems to work is if you are using Inline in your .lasso pages.

In the case of this particular FM solution, I am stuck with serving up images from FM container fields.

As I actually get it working, if anyone is interested, I will post the final soltion here. If my latest discoveries hold true, and if I can implement them correctly, maybe sometime next week.

Larry

Here is a quick solution if you are running Lasso 7 and FMSA. It is not the best secure solution as is using Data_FMContiainer, but until that gets completely ironed out, this will get you by.

<img src="[Field:'fieldnamehere']">

Also will work with related fields, as long as they are contained in a portal.

<img src="[Field:'relationship::fieldnamehere']">

In fact, any fields in your layout that is available to the web will have to be encased in a portal. FMSA has a hard time serving up information from a layout if it contains related fields not in a portal.

Does not hide the image URL as does Database_FMContainer is supposed to do, but will at least show the container image. It is what I am using now to get my solution running. I will probably get it converted over to the more complicated Database_FMContainer in the future.

Larry

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.