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:
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:
WC2.0 Memory Requirements (1997)
Card clearance, problems - solutions? (1997)
webcat nt (1997)
CronoTask & WebCat (2000)
Requiring that certain fields be completed (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Detecting the screen size (2003)
Search results templates (1996)
emailer w/F2 (1997)
Input appreciated (2000)
and vs or vs not (1998)
form crasehes server (1997)
default value from Lookup (was Grant, please help me) (1997)
[WebDNA] ErrorLog.txt generated by WebDNA (2010)
Multiple cart additions (1997)
Location of Webcat site in folder hierarchy (1997)
HTML Editors (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Almost a there but..bye bye NetCloak (1997)
Tables (2005)