Re: choice of images
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 36414
interpreted = N
texte = You now say the photos are named-_pho*some number*.jpgbut before you said-[sku]_photoX.jpgit doesn't matter that I know exactly except that if I don't know exactly then I can't give preciseexamples......the main thing is that you learn the principles/techniques, then you can roll your own... :-)Here I will assume the first (the 2nd example from the top of this email) naming convention yousaid.try this:(again I did not have time to set up the appropriate folder and files to test this.(So hopefully I don't crash yer server ;-)Let me know what happens...++++++++++++++++++++++++Assuming the first photo in the folder is the one displayed on results.tpl in the first placeand that it is always named [sku]_photo1.jpg ...=============START portion of results.tpl=============

[math show=F]totalPhotoCount=0[/math][math show=F]totalAudioCount=0[/math][text show=F]PhotoList=[/text][text show=F]AudioList=[/text]View alternate photos:
[ListFiles path=../images/[sku]/][showif [URL][FileName][/URL]^_photo][math show=F]totalPhotoCount=[totalPhotoCount]+1[/math][text show=F]PhotoList=[PhotoList],[totalPhotoCount][/text][text show=F]PhotoName[totalPhotoCount]=[FileName][/text][text show=F]PhotoIndx[totalPhotoCount]=[totalPhotoCount][/text][/showif][/ListFiles][ListWords Words=[PhotoList]&Delimiters=,][hideif [URL][index][/URL]=1][hideif [URL][index][/URL]=2][!][/!]- [/hideif]
[!][/!][Index] [/hideif][/ListWords]Hear which audio clip?:
[ListFiles path=../images/[sku]/][showif [URL][FileName][/URL]^_A][math show=F]totalClipCount=[totalClipCount]+1[/math][text show=F]ClipList=[ClipList],[totalClipCount][/text][text show=F]ClipName[totalClipCount]=[FileName][/text][/showif][/ListFiles][ListWords Words=[ClipList]&Delimiters=,][hideif [URL][index][/URL]=1]- [/hideif]
[Index] [/ListWords]=============END portion of results.tpl==========================START viewImage.tpl=============[!]---you get the idea to make your own HearClip.tpl and SeeMovie.tpl?---[/!][math show=F]totalPhotoCount=0[/math][text show=F]PhotoList=[/text]Here is photo # [PhotoIndx], for product # [sku]:

View alternate photos:
[ListFiles path=../images/[sku]/][showif [URL][FileName][/URL]^_photo][math show=F]totalPhotoCount=[totalPhotoCount]+1[/math][text show=F]PhotoList=[PhotoList],[totalPhotoCount][/text][text show=F]PhotoName[totalPhotoCount]=[FileName][/text][text show=F]PhotoIndx[totalPhotoCount]=[totalPhotoCount][/text][/showif][/ListFiles][ListWords Words=[PhotoList]&Delimiters=,][hideif [URL][index][/URL]=[PhotoIndx]][!][/!]
[!][/!][Index] [/hideif][/ListWords]
Backto main page for product # [sku]=============END viewImage.tpl=============Alan wrote:> All of the files in the folder begin with the SKU for that item only, and then end with something> that describes their use (at least they make sense to my customer who named them). They are a> mixture of jpeg images, QuickTime Movies and html files. However all of the files I want to use> in this case do end with _pho*some number*.jpg.>> By the way I will do similar select item 1 2 3 displays on other pages for audio clips and> video clips which end with _A*some number*.mov and _V*some number*.mov. Maybe that will help> in the approach you suggest.>>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
You now say the photos are named-_pho*some number*.jpgbut before you said-[sku]_photoX.jpgit doesn't matter that I know exactly except that if I don't know exactly then I can't give preciseexamples......the main thing is that you learn the principles/techniques, then you can roll your own... :-)Here I will assume the first (the 2nd example from the top of this email) naming convention yousaid.try this:(again I did not have time to set up the appropriate folder and files to test this.(So hopefully I don't crash yer server ;-)Let me know what happens...++++++++++++++++++++++++Assuming the first photo in the folder is the one displayed on results.tpl in the first placeand that it is always named [sku]_photo1.jpg ...=============START portion of results.tpl=============
[math show=F]totalPhotoCount=0[/math][math show=F]totalAudioCount=0[/math][text show=F]PhotoList=[/text][text show=F]AudioList=[/text]View alternate photos:
[ListFiles path=../images/[sku]/][showif [url][FileName][/URL]^_photo][math show=F]totalPhotoCount=[totalPhotoCount]+1[/math][text show=F]PhotoList=[PhotoList],[totalPhotoCount][/text][text show=F]PhotoName[totalPhotoCount]=[FileName][/text][text show=F]PhotoIndx[totalPhotoCount]=[totalPhotoCount][/text][/showif][/ListFiles][ListWords Words=[PhotoList]&Delimiters=,][hideif [url][index][/URL]=1][hideif [url][index][/URL]=2][!][/!]- [/hideif][url][sku][/URL][!][/!]&WhichPhoto=[url][interpret][PhotoName[index]][/interpret][/URL][!][/!]&PhotoIndx=[url][word][/URL]>[!][/!][Index] [/hideif][/ListWords]Hear which audio clip?:
[ListFiles path=../images/[sku]/][showif [url][FileName][/URL]^_A][math show=F]totalClipCount=[totalClipCount]+1[/math][text show=F]ClipList=[ClipList],[totalClipCount][/text][text show=F]ClipName[totalClipCount]=[FileName][/text][/showif][/ListFiles][ListWords Words=[ClipList]&Delimiters=,][hideif [url][index][/URL]=1]- [/hideif][url][sku][/URL][!][/!]&WhichClip=[url][interpret][ClipName[index]][/interpret][/URL][!][/!]&ClipIndx=[url][word][/URL]>[Index] [/ListWords]=============END portion of results.tpl==========================START viewImage.tpl=============[!]---you get the idea to make your own HearClip.tpl and SeeMovie.tpl?---[/!][math show=F]totalPhotoCount=0[/math][text show=F]PhotoList=[/text]Here is photo # [PhotoIndx], for product # [sku]:

View alternate photos:
[ListFiles path=../images/[sku]/][showif [url][FileName][/URL]^_photo][math show=F]totalPhotoCount=[totalPhotoCount]+1[/math][text show=F]PhotoList=[PhotoList],[totalPhotoCount][/text][text show=F]PhotoName[totalPhotoCount]=[FileName][/text][text show=F]PhotoIndx[totalPhotoCount]=[totalPhotoCount][/text][/showif][/ListFiles][ListWords Words=[PhotoList]&Delimiters=,][hideif [url][index][/URL]=[PhotoIndx]][!][/!][url][sku][/URL][!][/!]&WhichPhoto=[url][interpret][PhotoName[index]][/interpret][/URL][!][/!]&PhotoIndx=[url][word][/URL]>[!][/!][Index] [/hideif][/ListWords]
[url][sku][/URL]>Backto main page for product # [sku]=============END viewImage.tpl=============Alan wrote:> All of the files in the folder begin with the SKU for that item only, and then end with something> that describes their use (at least they make sense to my customer who named them). They are a> mixture of jpeg images, QuickTime Movies and html files. However all of the files I want to use> in this case do end with _pho*some number*.jpg.>> By the way I will do similar select item 1 2 3 displays on other pages for audio clips and> video clips which end with _A*some number*.mov and _V*some number*.mov. Maybe that will help> in the approach you suggest.>>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Butler
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[taxRate] [TaxTotal] ? (1997)
WebCat2: multiple currency support (1997)
[replace] has protection feature like [delete]? (2000)
YACBQ.....(Yet another checkbox question) (2000)
Random sort is not random at all..... (2000)
WebCatalog for guestbook ? (1997)
page redirect in webDNA (1997)
date pref (1999)
WebCatalog2 Feature Feedback (1996)
More on the email templates (1997)
Re2: Calculating multiple shipping... (1997)
WebMerchant 1.6 and SHTML (1997)
Sorting Orders (1997)
WebCat2 several catalogs? (1997)
OT: Variables in printed URL (2007)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Webcatalog [blank] Problem (1999)
How true is this? (1999)
Nesting format tags (1997)
Nested [xxx] contexts & Bad Suffix (1998)