MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] If file exists... show it



mikeh@minivend.com writes:

>  This is what I mean. The *concept* is not getting across.

Ain't that the truth! :-) 
Thank you for excusing my density and driving home the point. Now I can go 
bang my head on something else.

Thanks very much,
Rob Maurer

> ******    message to minivend-users from mikeh@minivend.com     ******
>  
>  Quoting Handytman@aol.com (Handytman@aol.com):
>  >  other things in the FAQ section. Anyone have a method for getting the
>  >  word out? A new title for the FAQ question? Requiring people to sign a
>  >  statement before downloading? 8-)
>  > 
>  > Mike,
>  > I am sorry. I did not even think to check the FAQ. Shame on me. Thanks 
for 
> 
>  > the reproof, much-needed as it was. Dare I ask, please indulge me once 
> more. 
>  > I can see that for using the tag I'm using [value mv_searchspec] inside 
> the 
>  > [if-file] tag, there needs to be some "quoting". What I tried originally 
> is:
>  > [if file /opt2/home3/titanicmemorabilia/public_html/titanic/images/sys/[
> value 
>  > mv_searchspec].gif]
>  > 
>  > Doesn't work. Neither does quoting the [value mv_searchspec] tag:
>  > [if file 
>  > /opt2/home3/titanicmemorabilia/public_html/titanic/images/sys/"[value 
>  > mv_searchspec]".gif]
>  
>   =item file
>  
>   Tests for existence of a file. Useful for placing image
>   tags only if the image is present.
>  
>       [if file /home/user/www/images/[item-code].gif]
>       [Unable to display image]
>       [/if]
>  
>       or 
>  
>       [if type=file term="/home/user/www/images/[item-code].gif"]
>       [Unable to display image]
>       [/if]
>  
>   The C<file> test requires that the I<SafeUntrap> directive contains
>   C<ftfile> (which is the default).
>  
>  This is what I mean. The *concept* is not getting across.
>  
>  This is positional:
>  
>   [if file somefile]
>  
>  This is named and quoted attributes (just like HTML):
>  
>   [if type=file term=somefile]
>  
>  -- 
>  Mike Heins                          http://www.minivend.com/  ___ 


Search for: Match: Format: Sort by: