Jump to content

serving container image to webpage lasso 7.1?


This topic is 7087 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7087 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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