wwyngaard Posted January 5, 2002 Posted January 5, 2002 I have a specification solution that needs to have up to 5 images linked to 1 specification so I thought I would just relate them. They display fine in a portal along with several text fields. The problem is that I cannot get the images to display through the web companion. The text fields display fine but not the images. I also cannot get even a related container to display outside of the portal. I am wrong in making them related or should I just insert them into containers within the spec file. My thought was that having 5 pdf's at 100k each and several thousand specs the file will get big and slow quickly. Any thoughts or ideas. Wayne
Newbies jacottam Posted January 8, 2002 Newbies Posted January 8, 2002 You are correct to be using a realtionship if not all records have the same number of images. It is what I have similarly decided to do. There are some tricks that you must know to get information to the web via a relationship. 1-The information you are trying to use must be displayed on a layout in your database. 2-You must specify that layout using the -lay CDML variable tag. This can either be done in-line in a link or as a "hidden" INPUT element on a form. In either case it follows the same format as the -DB or -Format elements (-tag=xxxxx). 3-Specifying the fields you want to dispaly is in the same syntax with the field tag as FilemakerPro uses internally: [FMP-Field: realtionship::field] (yes, there are two colons). Below is some sample code I am using to display images through a portal. Pictures are held through a relationship called gardenPictures and in a field named Picture: <DIV STYLE="overflow:auto; height:10px; width:120px;"> [FMP-Portal: gardenPictures] <DIV STYLE="position: relative;overflow: hidden;top: 1px;left: 1px;height: 60px;width: 100px;"> <IMG CLASS="dbDataImage" SRC="[FMP-Image: gardenPictures: icture]" WIDTH="69" HEIGHT="52" ALIGN="MIDDLE"> </DIV> [/FMP-Portal] </DIV> I hope this helps.
Recommended Posts
This topic is 8453 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 accountSign in
Already have an account? Sign in here.
Sign In Now