Re: Show if file exists

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58755
interpreted = N
texte = Sorry follow this link to check it :- http://css.hanon-shop.com/products/detail/mens_mhi_clothing/pants/4/MHP01/Olive/brandcat/_/_/ Alan White wrote: > Hi > > I *had* a piece of coede working which would check to see if an image > was in a particular directory and display a link if it was present. > For some reason this piece of code no longer seems to confirm the fact > that a file is present even if it is.... > > THE CODE (some formatting stripped out) > ================================== > > [showif [fileinfo > file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T] > > href="http://css.hanon-shop.com/details/viewDetails/2/[prodID]/[colour]"> > > > [/showif] > [showif [fileinfo > file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T] > > href="http://css.hanon-shop.com/details/viewDetails/3/[prodID]/[colour]"> > > > [/showif] > > ================================== > > I added in some error checking in the form of :- > > ===================== > > [text]image2=[fileinfo > file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] > > > [text]image3=[fileinfo > file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] > > > Image 2 should be this :-
> src="[imagePath]/images/products/detail/2/[prodID][colourCode].jpg">
/> > > Image 3 Should be :-
> src="[imagePath]/images/products/detail/3/[prodID][colourCode].jpg">
/> > > ===================== > > The extra images are showing where hard coded when present yet the > fileinfo is not picking them up :-( > > Does anyone have any suggestions? > > Thanks > Alan > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Show if file exists ( Alan White 2004)
  2. Re: Show if file exists ( Alain Russell 2004)
  3. Re: Show if file exists ( Alan White 2004)
  4. Re: Show if file exists ( Christer Olsson 2004)
  5. Re: Show if file exists ( Alan White 2004)
  6. Re: Show if file exists ( Gary Krockover 2004)
  7. Re: Show if file exists ( Alan White 2004)
  8. Re: Show if file exists ( Gary Krockover 2004)
  9. Re: Show if file exists ( Alan White 2004)
  10. Re: Show if file exists ( Alan White 2004)
  11. Show if file exists ( Alan White 2004)
Sorry follow this link to check it :- http://css.hanon-shop.com/products/detail/mens_mhi_clothing/pants/4/MHP01/Olive/brandcat/_/_/ Alan White wrote: > Hi > > I *had* a piece of coede working which would check to see if an image > was in a particular directory and display a link if it was present. > For some reason this piece of code no longer seems to confirm the fact > that a file is present even if it is.... > > THE CODE (some formatting stripped out) > ================================== > > [showif [fileinfo > file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T] > > href="http://css.hanon-shop.com/details/viewDetails/2/[prodID]/[colour]"> > > > [/showif] > [showif [fileinfo > file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T] > > href="http://css.hanon-shop.com/details/viewDetails/3/[prodID]/[colour]"> > > > [/showif] > > ================================== > > I added in some error checking in the form of :- > > ===================== > > [text]image2=[fileinfo > file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] > > > [text]image3=[fileinfo > file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] > > > Image 2 should be this :-
> src="[imagePath]/images/products/detail/2/[prodID][colourCode].jpg">
/> > > Image 3 Should be :-
> src="[imagePath]/images/products/detail/3/[prodID][colourCode].jpg">
/> > > ===================== > > The extra images are showing where hard coded when present yet the > fileinfo is not picking them up :-( > > Does anyone have any suggestions? > > Thanks > Alan > > ------------------------------------------------------------- > 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://webdna.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://webdna.smithmicro.com/ Alan White

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:

Car Database (2002) Possible Bug in 2.0b15.acgi (1997) Protect (1997) Banners (1997) where to put code (1998) SHOWIF/HIDEIF empty fields (2005) [TaxableTotal] - not working with AOL and IE (1997) Data Entry ... Excel Style ... How To? (2001) Show new (2003) HELP..Changing Price after adding to cart. (1999) Re[2]: 2nd WebCatalog2 Feature Request (1996) [showif]/[hideif] question (1997) webcat NT (1998) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Separate SSL Server (1997) [Sum] function? (1997) Where's Cart Created ? (1997) Re:quit command on NT (1997) Quantity (1998) [WebDNA] WebDNA Corp (2008)