Item10350: If search results are less than pagesize, unresolved token shows up
Priority: Urgent
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component: SEARCH
Branches: Release01x01 trunk
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..
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
.
later... i find the unresolved $pager token error too.
--
SvenDowideit - 16 Mar 2012