Ups.. sorry...
it must be my mistake, not to compose new message but reply from last thread I read
and forget giving new Subject.
and forget giving new Subject.
I have modified Display.cc according to
ftp://ftp.ccsf.org/htdig-patches/3.1.6/Google-style.0
by changing line:
by changing line:
for (i = 1; i <= nPages; i++)
with:
int pageSpan = config.Value("results_page_span", 10);
int pageStart = pageNumber - pageSpan;
int pageEnd = pageNumber + pageSpan;
if ( pageStart < 1 ) pageStart = 1;
if ( pageEnd > nPages ) pageEnd = nPages;
for (i = pageStart; i <= pageEnd; i++)
int pageStart = pageNumber - pageSpan;
int pageEnd = pageNumber + pageSpan;
if ( pageStart < 1 ) pageStart = 1;
if ( pageEnd > nPages ) pageEnd = nPages;
for (i = pageStart; i <= pageEnd; i++)
and I re-compile htdig using make and make install. I have removed the page_number_text and no_page_number_text attributes from the configuration file.
But the pagelist in the search result still show all of page number together.
But the pagelist in the search result still show all of page number together.
Did I miss something?
Thanks in advance.
Gilles Detillieux <[EMAIL PROTECTED]> wrote:
I changed the subject because this has nothing to do with
"include virtual file".
According to Irene talaway:
> Sometimes the search results fit on more than 20 pages, and for me
> it's not good enough to display all page numbers together. I wonder if
> I can modify the pagelist so that the search result page will display
> only ten page number in the PAGELIST variable, and if my current page
> is 10 and then I click next page text (e.q [NEXT]), the PAGELIST will
> show page number 6 to 15. Or the PAGELIST will show the next 10 page
> number (11 to 20).
>
> Is there any way for doing this???
This is what's known as Google-style paging. You can do it in 3.1.6 if
you apply this patch:
ftp://ftp.ccsf.org/htdig-patches/3.1.6/Google-style.0
The thing is this won't work well with graphical buttons for page links,
because you're not likely to have numbered button icons for all the page
links which could potentially come up with this scheme. So, you usually
have to remove the page_number_text and no_page_number_text attributes
from htdig.conf so htsearch defaults to text-only links.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

