NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item10350: If search results are less than pagesize, unresolved token shows up

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine SEARCH  
Search results that are less than pagesize should show no footer, so no pager. This partially works, because the string $pager is displayed (plus hr line above) instead.

-- ArthurClemens - 13 Feb 2011

I'm not sure what makes you think the footer should not show up - can you elaborate (the docs are vague tho)

need more info to reproduce the unresolved token:

TML

%STARTSECTION{"barepager"}%
%SEARCH{
    "web"
    type="text"
    web="System"
    topic="WebHome,WebChanges,WebIndex,WebPreferences"
    scope="text"
    nonoise="on"
    format="$web.$topic"
    pager="on"
}%
%ENDSECTION{"barepager"}%

the pointless pager example we moved to afterwards..

Result

WebChanges System WebIndex WebPreferences FOOT(4,4) (we don't want the newline and Page 1 of 1 to be rendered - the FOOT() should stay.)

TML

%STARTSECTION{"uselesspager"}%
%SEARCH{
    "web"
    type="text"
    web="System"
    topic="WebHome,WebChanges,WebIndex,WebPreferences"
    scope="text"
    nonoise="on"
    format="$web.$topic"
    showpage="1"
    pagesize="5"
    footer="FOOT($ntopics,$nhits)"
    pager="on"
}%
(we don't want the newline and _Page 1 of 1_ to be rendered - the FOOT() should stay.)
%ENDSECTION{"uselesspager"}%

-- SvenDowideit - 17 Feb 2011

Can't reproduce it here either. I think this only happens in Release branch.

-- ArthurClemens - 17 Feb 2011

f.o is now running the release branch - and its not happening here?

-- SvenDowideit - 09 Mar 2011

Hard to say. Somehow this site does not work as expected: http://foswiki.org/Blog.BlogPost?tag=test

-- ArthurClemens - 12 Mar 2011

Ok, trunk does work: http://trunk.foswiki.org/Blog.BlogPost?tag=test

If you look at a search result from Google, you see that they do not show a footer like "page 1 of 1" with a small set. They just show the results.

And that is how I like it: no noise if not needed.

-- ArthurClemens - 09 Jul 2011

so we can close this?

-- SvenDowideit - 13 Mar 2012

No, it still says Page 1 of 1.

-- ArthurClemens - 13 Mar 2012

and after trying for days to find where on http://foswiki.org/Blog.BlogPost?tag=test you see Page 1 of 1 i finally notice you mean on my example frown .

later... i find the unresolved $pager token error too.

-- SvenDowideit - 16 Mar 2012
 
Topic revision: r21 - 11 Apr 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads