suppressed writes:I'm want to display an image in a simple fly page that calls the imagefrom items/[item-code].jpg If the image is not in the diretory for that part, I want interchange to display a default image.I have read in interchange mailing list that the data tag and if tagisa good way to do this, but I'm having trouble getting it to work.Thisis what I have so far, but I have not been able to get it to work:<img src=[if type=file term="items/[item-code].jpg"] [else] items/1sna.jpg [/else][/if] Border="0">just a wild guess but try [if type=file term="images/items/[item-code].jpg"] ...I gave it a try but did not make the item image display, still only get default image to display. steve
Hi,
Below code works in a foundation store where the images are located at:<docroot>/standard/images/items/ Just create a testpage and put the code below in, replace <STICK HERE ITEM CODE> with one of your item codes. It should show up twice, because there are two ways below to do it. Also check the following variables:
IMAGE_DIR /standard/images Directories and Paths SAMPLEHTML /www/htdocs/standard Directories and PathsSAMPLEURL http://its.a.server.nl/standard Directories and Paths [fly-list code="<STICK HERE ITEM CODE>"]
<img src="[if type=file term="images/items/[item-code].jpg"] items/[item-code].jpg" [else] items/1sna.jpg" [/else][/if] Border="0">
[if type=file term="images/items/[item-code].jpg"] <img src="items/[item-code].jpg"> [else] <img src="items/1sna.jpg"> [/else][/if] [/fly-list] CU, Gert
_______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.