Jump to content
Sign in to follow this  
The Dog

serving container image to webpage lasso 7.1?

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Similar Content

    • By John May - Point In Space
      NEWS FOR IMMEDIATE RELEASE - December 10, 2012

      POINT IN SPACE ANNOUNCES LASSO 9.2 AVAILABILITY

      CARRBORO, NC, December 10, 2012 - Point In Space Internet Solutions today announced immediate availability of Lasso 9.2 hosting, available at the same pricing structure as previous versions.

      "Lasso 9 is a complete rewrite from 8, continuing the ease-of-use that Lasso has become known for and outperforming other languages," says John May, Point In Space's President.

      Point In Space is offering Lasso 9 hosting, available immediately, with a number of packages to choose from including FileMaker Pro and MySQL connectivity.  See their web site - http://www.pointinspace.com/ - for a complete listing of available account features and pricing.


      About Point In Space Internet Solutions

      Point In Space Internet Solutions is a North Carolina based company specializing in FileMaker Pro, MySQL, PHP, Lasso Professional, Web, E-Mail, Listserv and FTP hosting solutions.  For more information, visit Point In Space's web site at http://www.pointinspace.com/ , or contact them at info@pointinspace.com or (800) 664-8610.
       
×

Important Information

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