Re: choice of images

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36415
interpreted = N
texte = 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 and we'll go from there.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?---[/!] [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. > > As always thanks for the help, > > Alan Jackson > (WebCat 3.0.8, Mac) > > John Butler wrote: > > > Is the other stuff in those folders more images but which do not belong to that sku? > > Or is the other stuff non-image files? > > Does the other stuff have names which use some convention, like your product photos we > > discussed already? Some pattern we could take advantage of? > > > > Does the other stuff *have* to be there? (Including if you just *really* want it there.) > > > > I have several ideas, but don't want to spend the time until I know more about what you are > > doing... > > > > Alan wrote: > > > > > Wow John thanks, you have me really close here. I really do appreciate you input. Your > > > initial suggestion shows exactally the style of results I want to display but there are > > > other files in the same folder that are not images and they also get included in the total > > > number of files the [ListFiles] sees so the number it returns is wrong. > > > > > > I created the field in the database named photos in hopes that I could have it display > > > the 1 2 3 in a [FoundItems][ShowNext ] loop but I'm not smart enough to make it work. Any > > > suggestions on this type of approach, or any other? > > > > > > Thanks, > > > Alan Jackson > > > (WebCat 3.0.8, Mac) > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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)
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 and we'll go from there.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?---[/!] [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. > > As always thanks for the help, > > Alan Jackson > (WebCat 3.0.8, Mac) > > John Butler wrote: > > > Is the other stuff in those folders more images but which do not belong to that sku? > > Or is the other stuff non-image files? > > Does the other stuff have names which use some convention, like your product photos we > > discussed already? Some pattern we could take advantage of? > > > > Does the other stuff *have* to be there? (Including if you just *really* want it there.) > > > > I have several ideas, but don't want to spend the time until I know more about what you are > > doing... > > > > Alan wrote: > > > > > Wow John thanks, you have me really close here. I really do appreciate you input. Your > > > initial suggestion shows exactally the style of results I want to display but there are > > > other files in the same folder that are not images and they also get included in the total > > > number of files the [listfiles] sees so the number it returns is wrong. > > > > > > I created the field in the database named photos in hopes that I could have it display > > > the 1 2 3 in a [founditems][ShowNext ] loop but I'm not smart enough to make it work. Any > > > suggestions on this type of approach, or any other? > > > > > > Thanks, > > > Alan Jackson > > > (WebCat 3.0.8, Mac) > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

Not really WebCat (1997) memory in high traffic servers (2004) problem with NT beta (1997) Showif -what am I missing??? (1999) Why is this search finding the right thing?! (2002) No subject was specified. (2001) C is for cookie - that's good enough for me... (2001) The IBC root beer has arrived! (1997) WebCatalog Programmer looking for a new job (2001) I don't think my install worked (2003) Can't use old cart file (was One more try) (1997) Encrypting the URL Query String (2003) Open Source (2000) Orders to FMPro (2005) Error: Too many nested [xxx] contexts (1997) suffix mapping for NT? (1997) WebCatalog for Postcards ? (1997) service stop and restart (1997) Date Sorting (1997) Bug or syntax error on my part? (1997)