[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] If file exists... show it
Quoting Handytman@aol.com (Handytman@aol.com):
>
> I have, on my results page, a mechanism to identify one-click searches. It
> works because the search strings are category-names, and in a subdirectory of
> my public HTML directory, there are .GIF files named after the categories.
>
> This works fine (the picture displays):
> [Unable to display image]
>
> This also works (there's a category and a .GIF file named 'artifacts'):
> [if file
> /opt2/home3/titanicmemorabilia/public_html/titanic/images/sys/artifacts.gif]
> [then]
> [Unable to display image]
> [/then]
> [/if]
>
> But this (what I really need) never works:
> [if file /opt2/home3/titanicmemorabilia/public_html/titanic/images/sys/[value
> mv_searchspec].gif]
> [then]
> [Unable to display image]
> [/then]
> [/if]
>
> Any of you very experienced people know why not? Or see what I must change?
I am still seeing this one here all of the time, as well as one or two
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-)
=head1 Things about MiniVend that people sometimes don't understand....
There are a few things that seem to escape some users
in the documentation. This is no doubt due to the author's
closeness and familiarity with the concepts of MiniVend.
This section attempts to explain some of these basic issues.
[snip]
=head2 How can I tell when I need to quote a tag inside a tag?
In general, you don't need to quote the following tags
which are interpreted first within a list:
[item-code] [item-data ...] [item-field ...] etc.
[loop-code] [loop-data ...] [loop-field ...] etc.
[sql-code] [sql-data ...] [sql-field ...] etc.
This is because they are interpreted as a part of the
surrounding C<[loop]>, C<[item-list]>, C<[search-list]>,
C<[sql list]>, or C<[tag each table]> constructs.
So this will work:
[item-list]
[page [item-field url]]detailed info[/page] on [item-description]
[/item-list]
This will I<not> work:
[page [value mypage]]
The [value ...] tag is not interpolated before page, and the parser will
not know to do so. It needs to be instead:
[page href="[value mypage]"]
Clear as mud, right? Well, at least if you quote them all you can't go
wrong. 8-)
=cut
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\