Akopia Akopia Services

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

Re: [mv] 2 results pages... (mv 3.14) - solved



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting . c . o . r . y .  t . r . e . s . e (digital@frognet.net):
> 
> 
> > Also I discovered strange thing:
> > this code
> > [if value mv_searchspec > 0]
> >   [value name="search_string" set="[value mv_searchspec]"]
> > [/if]
> > 
> > prints mv_searchspec to HTML code when the condition is true. But why?
> 
> that is caused by the  
> [value name="search_string" set="[value mv_searchspec]"]
> tag, and is, believe me, desired behavior.  The set positional argument is used
> to extend the [value] tag to allow you to both set and display the variable. 
> This can be very useful in one-time tag uses (ie, writting to a database;
> setting the write time in an [import] construct AND saving the value for
> logging or evaluation purposes (or perhaps a set of second database writes,
> etc.)
> 
> 
> I offer two "solutions" / simple tricks here:
> 
> 
> <!-- [if value mv_searchspec > 0]
> [value name="search_string" set="[value mv_searchspec]"]
> [/if] -->
> 
> This simply places the results in a html comment.  I do this with [export]
> tags, which sometimes write out data (like a "1" ;)

Or you can do [value name=something set=somevalue hide=1].

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>

Friends don't let friends use Outlook. -- Bob Blaylock
-
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: