Jump to content
Server Maintenance This Week. ×

adding files through the web


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

Recommended Posts

  • 2 weeks later...

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.

Link to comment
Share on other sites

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