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:
Repeating Fields (1997)
[OT] Mom's gift (2006)
2nd WebCatalog2 Feature Request (1996)
WebDNA & HTML Problems (2003)
Emailer (1997)
Price recalc based on quantity (1997)
Fedora Core 6 (2007)
[WebDNA] ShoppingCarts folder permissions (2008)
Running 2 two WebCatalog.acgi's (1996)
Re:trouble (1997)
changing banners on a page without refresh? (2000)
Duplicate Cart Problem in Netscape (2000)
Another question about credit cards (1997)
Summary search -- speed (1997)
Can Web Cat Do this? - LOOK (2000)
WebCatalog f2 Installation (1997)
range searching (1998)
What is WebDNA (1997)
member access (2000)
V4, simultaneous release? (2000)