[ic] Site Map Code
Terral Artis
interchange-users@icdevgroup.org
Wed Jun 18 23:18:00 2003
At 10:21 PM 6/18/2003 Wednesday, you wrote:
>On Wednesday, June 18, 2003, at 08:54 PM, Terral Artis wrote:
>>I found this loop code to produce a down and dirty site-map listing of
>>all products here in the mail list.
>>
>>[loop search="
>> fi=products
>> st=db
>> ra=yes
>> ml=10000
>>
>> "]
>> <A HREF="http://__SERVER_NAME____CGI_URL__/[loop-code].html">
>> [loop-field description]
>> </A><br>
>> [/loop]
>>
>>How would I limit the search to 50 per page, while still generate enough
>>pages for 1000 products on the fly? Example 1-50 on page 1, 51-100 on
>>page 2 etc...
>
>I accomplished largely the same thing with the following code. I'm not
>sure about how to format the links as "1-50, 51-100", but the following
>code should give you something close (it displays the page links as "1 2
>3" instead of "1-50, 51-100, etc."):
>
>[search-region more=1 search="
> ra=yes
> st=db
> fi=products
> ml=50
> "]
>[search-list]
>
><A HREF="http://__SERVER_NAME____CGI_URL__/[loop-code].html">
> [loop-field description]
> </A><br>
>
>[/search-list]
>
><br>
> [more-list]
> [next-anchor]>[/next-anchor]
> [prev-anchor]<[/prev-anchor]
> [more]
> [page-anchor]$PAGE$[/page-anchor]
> [/more-list]
>[/search-region]
>================================
I got it to work by changing the code to this...Thanks for your help:
[search_region more=1 search="
ra=yes
st=db
fi=products
ml=50
"]
[search_list]
<A HREF="http://__SERVER_NAME____CGI_URL__/[item-code].html">
[item-field description]
</A><br>
[/search_list]
<br>
[more-list]
[next-anchor]>[/next-anchor]
[prev-anchor]<[/prev-anchor]
[more]
[page-anchor]$PAGE$[/page-anchor]
[/more-list]
[/search_region]