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:
Need relative path explanation (1997)
Special characters in field names (1998)
suffix mapping for NT? (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
Handy Browser Counter Tip (1997)
[Sum] function? (1997)
creating a ShipCosts database (1997)
Performance Issue (2000)
Country & Ship-to address & other fields ? (1997)
Menu to select product variations (1997)
[WebDNA] Friday's.. WIP thread (2009)
Problems appending to database (1997)
[HIDEIF] inside [FOUNDITEM] (1997)
process SSI (1998)
Re:Share cost of training videos! (1998)
How to stop WebCat services on NT? (2000)
WebDNA-Talk Digest mode broken (1997)
[DOS]/DOS query perhaps OT (2003)
frames & carts (1997)
WebCat2: Items xx to xx shown, etc. (1997)