Akopia Akopia Services

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

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


Search for: Match: Format: Sort by: