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 precise examples... ...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 you said.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 place and 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]

Back to 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:

    
  1. Re: choice of images (John Butler 2000)
  2. Re: choice of images (Alan 2000)
  3. Re: choice of images (John Butler 2000)
  4. Re: choice of images (John Butler 2000)
  5. Re: choice of images (Alan 2000)
  6. Re: choice of images (John Butler 2000)
  7. Re: choice of images (John Butler 2000)
  8. Re: choice of images (Alan 2000)
  9. Re: choice of images (John Butler 2000)
  10. choice of images (Alan 2000)
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 precise examples... ...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 you said.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 place and 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]>Back to 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:

Need relative path explanation (1997) .. more on sliding discounts... (1997) emailer (1997) search/showif issues (2000) Is this possible, WebCat2.0 and checkboxes (1997) LOOP and IF statements (1997) $Append for Users outside the ADMIN group (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Links inside of Text Areas (2000) Trouble with [Math] (1998) WebCat2b15MacPlugin - showing [math] (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) RE: [WebDNA] [test] (2009) Authenticate Checker - different versions ?? (1998) WebCat2 - Getting to the browser's username/password data (1997) Get current URL with Variables (2005) [countwords] (2002) Help name our technology! (1997) Chat (2000) [WebDNA] [table] and COMMA in a Field (2015)