Re: Single Link browsing
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14262
interpreted = N
texte = Grant, Ken, etc...Thanks for the info re: ShowNext. Since I had your word for it, I knewit must work, so I went back to took another shot at it. Don't know whatI did wrong the first time, but the second attempt appears to be acharm. This works for me, anyhow! Has nice advantage of not showing theNext or Previous wording and GIF when doesn't apply...
[ShowNext position=begin&max=1] Previous[start]-[end] [/ShowNext] | [foundItems][/foundItems]
[ShowNext position=end&max=1] Next[start]-[end][/ShowNext] | I haven't tested on different browsers yet, but is working fine on NN4.0. Regards,Daledstokdyk@dvs.mv.com Grant Hulbert wrote:> >Yes, am trying to show a single link that says Show next 10 items> >...and one that says Show previous 10 items would be nice too! :-)>> 2.0.1 added support for the max=N parameter for [ShowNext], so you> don't have to do weird math things to fake it into showing only one> link. Look in the [ShowNext] online docs for things like max=1,> position=begin, etc. The example in the docs does what you want,> except you should add max=1 to limit the number of links. It works> more easily if you use $Search instead of an embedded [Search]> context.>> Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of> Us ====> Pacific Coast Software | WebCatalog, WebMerchant> 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster> San Diego, CA 92128 | SiteGuard> 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
Grant, Ken, etc...Thanks for the info re: ShowNext. Since I had your word for it, I knewit must work, so I went back to took another shot at it. Don't know whatI did wrong the first time, but the second attempt appears to be acharm. This works for me, anyhow! Has nice advantage of not showing theNext or Previous wording and GIF when doesn't apply...
[ShowNext position=begin&max=1] Previous[start]-[end] [/ShowNext] | [founditems][/foundItems]
[ShowNext position=end&max=1] Next[start]-[end][/ShowNext] | I haven't tested on different browsers yet, but is working fine on NN4.0. Regards,Daledstokdyk@dvs.mv.com Grant Hulbert wrote:> >Yes, am trying to show a single link that says Show next 10 items> >...and one that says Show previous 10 items would be nice too! :-)>> 2.0.1 added support for the max=N parameter for
[shownext], so you> don't have to do weird math things to fake it into showing only one> link. Look in the
[shownext] online docs for things like max=1,> position=begin, etc. The example in the docs does what you want,> except you should add max=1 to limit the number of links. It works> more easily if you use $Search instead of an embedded
[search]> context.>> Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of> Us ====> Pacific Coast Software | WebCatalog, WebMerchant> 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster> San Diego, CA 92128 | SiteGuard> 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Dale Stokdyk
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:
Emailer (WebCat2) (1997)
WebCat2: multiple currency support (1997)
Nested tags count question (1997)
IE Cache Problems... (1999)
Disconts (2004)
WebDNA for Dummies (2004)
Re:Searching for ALL / empty form field (1997)
[SearchString] problem with [search] context (1997)
Date Sorting (1997)
filtering extra characters from credit card numbers (2001)
WebCat name recognition (was MacFinder -- a new WebDNAweb site) (1998)
[WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011)
[sendmail] possible modification needed... (2000)
letterrip and webcats emailer (1998)
WebCatalog can't find database (1997)
WebCat on Intel Core 2 macs anyone? (2007)
[getchars] questions (1997)
BBEdit and WebCatalog 2.0? (1997)
So many lookers, hey smith micro (2003)
Appendfile memory usage (redux) (2003)