Re: Determining position
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32081
interpreted = N
texte = The documentation is not so great here. I too havestruggled with shownext, so maybe my explanation willhelp you.Here is the code you want to use to display x-y.Showing items [ShowNext] [start]-[end] [/shownext] of[numFOUND]Copy and paste it in. This will give you somethinglike this:Showing items 1 - 10 of 100.I am going to throw the following in because you mightalso want to do this. Say your search returns 100items and you are displaying the results 10 at a time. Here is some code that will let you put links onpages so that the user can jump directly from page 1to page 5, for example:[ShowIF [NumFound]>10]Jump to page:
[ShowNext position=begin&max=10]
[math]ceil([end]/10)[/math][/shownext][ShowNext position=middle][math]ceil([end]/10)[/math][HideIF [NumFound]=[end]][/HideIF][/shownext][ShowNext position=end&max=10][math]ceil([end]/10)[/math][/shownext][/ShowIF]You should be able to just cut and paste this inplace, just change WHATEVER.tpl to the name of thetemplate file you are using to display your searchresults. This will only display if you your searchresults return more than 10 items. If you want toshow 15 to a page, just change the ALL the 10s in thissnippet to 15.Hope this helps!!Jeff--- Dennis J. Bonsall, Jr.
wrote:> Is there any way that I can determine my location in> a list of> [founditems]? To be more exact, I am returning a> results page whose> search parameter contains max=25. I want to have,> at the top of each> page, a phrase which states Displaying items x -> y, where x is the> starting value for that page, and y is the ending. > In other words, if> this were the third page of results, it would read> Displaying items 51> - 75.> > What would be the easiest way to accomplish this?> > Thanks,> > Dennis> > >-------------------------------------------------------------> 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/__________________________________________________Do You Yahoo!?Send instant messages & get email alerts with Yahoo! Messenger.http://im.yahoo.com/-------------------------------------------------------------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:
The documentation is not so great here. I too havestruggled with shownext, so maybe my explanation willhelp you.Here is the code you want to use to display x-y.Showing items [shownext] [start]-[end] [/shownext] of[numFOUND]Copy and paste it in. This will give you somethinglike this:Showing items 1 - 10 of 100.I am going to throw the following in because you mightalso want to do this. Say your search returns 100items and you are displaying the results 10 at a time. Here is some code that will let you put links onpages so that the user can jump directly from page 1to page 5, for example:[ShowIF [NumFound]>10]Jump to page:
[ShowNext position=begin&max=10][math]ceil([end]/10)[/math][/shownext][ShowNext position=middle][math]ceil([end]/10)[/math][HideIF [NumFound]=[end]][/HideIF][/shownext][ShowNext position=end&max=10][math]ceil([end]/10)[/math][/shownext][/ShowIF]You should be able to just cut and paste this inplace, just change WHATEVER.tpl to the name of thetemplate file you are using to display your searchresults. This will only display if you your searchresults return more than 10 items. If you want toshow 15 to a page, just change the ALL the 10s in thissnippet to 15.Hope this helps!!Jeff--- Dennis J. Bonsall, Jr. wrote:> Is there any way that I can determine my location in> a list of> [founditems]? To be more exact, I am returning a> results page whose> search parameter contains max=25. I want to have,> at the top of each> page, a phrase which states Displaying items x -> y, where x is the> starting value for that page, and y is the ending. > In other words, if> this were the third page of results, it would read> Displaying items 51> - 75.> > What would be the easiest way to accomplish this?> > Thanks,> > Dennis> > >-------------------------------------------------------------> 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/__________________________________________________Do You Yahoo!?Send instant messages & get email alerts with Yahoo! Messenger.http://im.yahoo.com/-------------------------------------------------------------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/
Jeff Grady
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:
WebCat2b12 - nesting [tags] (1997)
I try hard to think positively (1998)
Error Lob.db records error message not name (1997)
[BULK] [WebDNA] Version 7 Config problem (2011)
How To question on setting up downloads (1997)
YACBQ.....(Yet another checkbox question) (2000)
Find all in search. (2002)
Re:Emailer and encryption (1997)
Ken's Data Manager (finally available I think ...) (2005)
WebCatalog as a ListServ (1998)
Running 2 two WebCatalog.acgi's (1996)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Add more fields to an existent data base (1997)
tabs as delimiters (2004)
Format question WC Mac f3 (1997)
WC2b12: Yes, Formulas.db is for real (1997)
why am I getting an authenticate dialog with no [protect]? (2000)
ErrorMessages.db (2004)
[BULK] [WebDNA] port from mime headers? (2017)
StoreBuilder/SiteBuilder (2005)