2022.2

Table Of Contents
Dynamic images
Dynamicimagesarecalleddynamicbecausetheyareswitched,dependingonthevalueofadatafield.
Thisway,atemplatecanbeadjustedtodifferentcustomers.
ThispagedescribeshowtoinsertdynamicimagesusingtheDynamicImageScriptWizard.
Otherwise,addingdynamicimagesrequiresaself-madescript(see"Writingyourownscripts"on
page808,"template"onpage1292and"ImageResource"onpage1296).
Addingdynamicimages
DynamicimagescanbeaddedtothetemplateusingtheDynamicImageScriptWizardonlyifyouhave:
l
Oneormoredatafieldsthatcontainvaluesonthebasisofwhichtheimagescanbeswitched.
l
Anappropriateimageforeachcase.Allfilesshouldbeofthesametypeandtheyneedtobe
storedinthesamelocation(theImagesfolderontheResourcespane,afolderondisk,or
online).Itisimportantthattheyarenamedafterthevariouspossiblevaluesoftherelateddata
field.
TousetheDynamicImageScriptWizard:
1. Addoneimagetothetemplate.See"Addingimages"onpage651.
2. Right-clicktheimageandclickDynamic Image.OrselecttheimageandclickSource(notthe
field,butthelabelbeforethefield)intheAttributespane.
TheDynamicImageScriptWizardopens.Theimage'sIDisusedasthescript'sselector.Ifthe
imagedidnothaveanID,itisautomaticallygenerated.
3. Selectthelocationofthefiles:
l
SelectResourcesiftheimagesresideintheImagesfolderontheResourcespane.
l
Folder on diskreferstoafolderonaharddrivethatisaccessiblefromyourcomputer.
ClicktheBrowsebuttontoselectafolder.
Asanalternativeitispossibletoenterthepathmanually.Youcangivealocalpath(e.g.
C:\Images\)orusethe"file"protocol.ThecompletesyntaxofafullyqualifiedURLwiththe
"file"protocolis:file://<host>/<path>.Note:ifthehostis"localhost",itcanbeomit-
ted,resultinginfile:///<path>,forexample:file:///c:/resources/images/.
l
Onlinerequiresyoutogiveaspecificwebaddress(forexample,http://www.mys-
ite.com/images/).
TheDynamicImageScriptWizardcomposesthefilenames(includingthepath)basedonthe
selectedlocation,theprefix,thevalueofadata field,andthesuffix.Thevariablepartofthe
filenamesisthevalueofthedatafield(s)intheFieldcolumn.Theprefixandsuffixaremeantto
containstaticpartsofthefilenames.
Page 741