Akopia Akopia Services

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

Re: [mv] problem with [loop-next], trying to make a "new items" section on the index page...



******    message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net>     ******

Kareef Huggins wrote:
> 
> ******    message to minivend-users from Kareef Huggins <xellos@netzero.net>     ******
> 
> I'm trying to find out a way to load "new releases" on the index page
> when you first enter the catalog, instead of the random pages the simple
> catalog brings up.  to do this, the easiest method i thought would work
> was to use the [loop-next] code like this:(using the browse.html code
> 
> [loop-next][calc]'[loop-field new]' eq 'N' [/calc][/loop-next]
> 
> this is the only line i changed in the actual code from the browse.html
> file in the simple catalog, other than html changes.
> i then named this file newtitles, and call it using an [include page]
> tag in the index.html file.
> 
> in my products.asc file, i have a field called "new" where i mark new
> items as "Y" and not new items as N.
> 
> but it still returns all products in the products.asc file.  can someone
> help me with this? or is there an easier/better way to implament this?
> thanks!

Did you use [loop-next] inside of any loop tag like [tag each
products...] or [loop search=..] or....?

----snipp------
[loop-next]tags[/loop-next]
     Evaluates the output of the MiniVend tags encased inside, and if it
evaluates to a numerical non-zero number (i.e. 1, 23, or -1) then the
loop will be skipped
     with no output. Example: 

           [loop-next][calc][loop-field weight] < 1[/calc][/loop-next]

     If this is contained in your [loop list] and the product's weight
field is less than 1, then a numerical 1 will be output from the
[calc][/calc] operation.
     The item will not be shown. 
----snipp------

Regards,

	Joachim

-- 
-------------Hans-Joachim Leidinger---------------------


-
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: