Akopia Akopia Services

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

RE: [mv] mv_searchspec if statements (Thanks Racke)



******    message to minivend-users from "Luke Lozier" <lozier@best.com>     ******

This is a start.  But how do I get it to print ONLY if the search_spec is
"mystery" for example.  I don't want to show every term.

Thanks again,

Luke

-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Stefan Hornburg
Sent: Sunday, June 25, 2000 3:17 PM
To: minivend-users@minivend.com
Subject: Re: [mv] mv_searchspec if statements


******    message to minivend-users from Stefan Hornburg <racke@linuxia.de>
******

"Luke Lozier" <lozier@best.com> writes:

> ******    message to minivend-users from "Luke Lozier" <lozier@best.com>
******
>
> I'm trying to display a banner ad based on search terms.  I would like to
do
> an[if mv_searchspec=...] tag but nothing seems to work.
>
> What is the proper way to write such a tag?

Just an example that prints out the search term depending on what
search has been used (text search, category search, code search):

[seti searchspec][value-extended name="mv_searchspec" index=0][/seti]
[L]Suchbegriff[/L]:
[if value searchlabel eq category]
[data base="categories" field="name" key="[scratch searchspec]"]
[elsif value searchlabel eq countrycode]
Code [scratch searchspec]
[/elsif]
[else]
[scratch searchspec]
[/else]
[/if]

Ciao
        Racke


--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: