Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

is there a way that i can add an image through the web, like in filemaker i can have a containor field that can hold images. but how can i do something like that over the web.

  • 2 weeks later...
Posted

You can display the contents of a container field over the web but it doesn't work very well. I tried it and it was slow. Also, if you have your FMP server hosted somewhere off site, it takes way too long to upload and download the DB full of images.

Best thing to do (I am doing this extensively at http://www.spiritsinstone.com then click on 'virtual gallery') is to just call the image from any server with an absolute url based on calcs in the DB.

For example:

Use something like this in the CDML file:

<img src="[FMP-Field: Image]" alt="[FMP-Field: Description], Image">

Where the field Image is a calculation with result of text that looks something like this:

If(HaveImage = "No", "http://www.sample server.com/directoryname/emptypixel.gif", Lower("http://www.sampleserver.com/directoryname/" & IdNumber & ".jpg"))

So if your items in the DB have an ID Number, and you can if you want have another field called something like HaveImage (Yes or No value list) then if you mark that No, have an Empty Pixel display, otherwise return the pathname to your image that you want to display.

I hope this makes sense. Have a look at spiritsinstone.com and then get back to me if you have more questions.

Cael.

This topic is 8675 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.