Re: limiting found items
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38894
interpreted = N
texte = Donovan Brooke wrote:> > sorry I wasn't more specific. I have the max peramiter in the search along with a shownext context.> > However, I have a numfound context that shows the user how many items were found. I don't want> the customer to see this number and have them only get to max=x number. I guess I am trying to stop> the loop when found records reaches a certain number.> Then don't show them the [numfound] unless it is smaller than [max].I would actually do something like this:[if [numfound]>[max]] [then]Showing first [max] records[/then] [else]Showing [numfound] records[/else][/if]If you are concerned about limiting the number of [shownext] links displayed on a page, you need to look at the docs for the max parameter to [shownext].John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Donovan Brooke wrote:> > sorry I wasn't more specific. I have the max peramiter in the search along with a shownext context.> > However, I have a numfound context that shows the user how many items were found. I don't want> the customer to see this number and have them only get to max=x number. I guess I am trying to stop> the loop when found records reaches a certain number.> Then don't show them the [numfound] unless it is smaller than [max].I would actually do something like this:[if [numfound]>[max]] [then]Showing first [max] records[/then] [else]Showing [numfound] records[/else][/if]If you are concerned about limiting the number of [shownext] links displayed on a page, you need to look at the docs for the max parameter to [shownext].John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
country of origin from IPADDRESS??? (2001)
WebCat2 - storing unformatted date data? (1997)
[WebDNA] fastcgi 7+ & [cart]? (2010)
[WebDNA] [WSC] WebDNA Development Summit (2014)
File Uploads: WebCat/SiteEdit (1998)
Enhancement Request for WebCatalog-NT (1996)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Webcatalog/Butler (1998)
Getting total number of items ordered (1997)
Two submit buttons ? (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Webmerchant confirmation hooks? (1997)
Server slowing down. (1997)
Help! WebCat2 bug (1997)
Normalizing Dates and Phone numbers (2000)
range searching (1998)
gateway application timeouts (1998)
WebCatalog Hosting (1996)
Using [redirect] in the middle of a page? (1999)
Text in coloums... (2000)