numero = 14315
interpreted = N
texte = I just modified the AdminResults.tmpl to use shownext for both hyperlinks and form buttons. I did notice that max=N did not seem to be automated in the case of form buttons, but it's correct for hyperlinks (easily fixed, but confusing).Here's what I did:1) Open AdminResults.tmpl, and paste the following in FRONT of the table:[shownext position=begin&max=1&method=POST][/shownext]2) Paste the following AFTER the table:[shownext position=end&max=1&method=POST][/shownext]3) Enter the GeneralStore admin page and click List All Products4) Notice no shownexts appear, because no max=N is provided5) Modify URL in browser to add &max=5 to URLIf you want to do the same thing, but with hyperlinks instead, change the ShowNext to the following:[shownext position=begin&max=1]Show [start] - [end] [/shownext]and[shownext position=end&max=1]Show [start] - [end] [/shownext]In both cases you can see the purpose of [SearchString] is to fill in all the search variables for you, and it automatically calculates start and end values for its own section of the search. When you specify method=POST inside [ShowNext], then [SearchString] generates style variables, and if you specify method=GET, then it generates name1=value1&name2=value2 style variables.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
I just modified the AdminResults.tmpl to use shownext for both hyperlinks and form buttons. I did notice that max=N did not seem to be automated in the case of form buttons, but it's correct for hyperlinks (easily fixed, but confusing).Here's what I did:1) Open AdminResults.tmpl, and paste the following in FRONT of the table:[shownext position=begin&max=1&method=POST][/shownext]2) Paste the following AFTER the table:[shownext position=end&max=1&method=POST][/shownext]3) Enter the GeneralStore admin page and click List All Products4) Notice no shownexts appear, because no max=N is provided5) Modify URL in browser to add &max=5 to URLIf you want to do the same thing, but with hyperlinks instead, change the ShowNext to the following:[shownext position=begin&max=1]Show [start] - [end] [/shownext]and[shownext position=end&max=1]Show [start] - [end] [/shownext]In both cases you can see the purpose of [SearchString] is to fill in all the search variables for you, and it automatically calculates start and end values for its own section of the search. When you specify method=POST inside [shownext], then [SearchString] generates style variables, and if you specify method=GET, then it generates name1=value1&name2=value2 style variables.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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...