[pmwiki-devel] Puzzled about pagelists returning search results

Simon nzskiwi at gmail.com
Wed Oct 21 12:34:17 PDT 2026


I have, here <https://ttc.org.nz/TTC/Search>,

----
!!! [[Webteam/ | Website]]
(:details summary="Show search results from Website administration":)
(:pagelist request=-group req=1 group=Webteam order=$Name
name={$:ExcludePages} fmt=#titlesummary list=normal:)
(:detailsend:)

!!!! Test of 'searchresultslist' pagelist version (''not working properly'')
(:pagelist group=Webteam fmt=#searchresultslist fromgrp="Website
administration":)

>>comment<<
[[#searchresultslist]]
(:template defaults request=-group req=1 order=$Name name={$:ExcludePages}
list=normal:)
(:template first:)
!!! [[{$$group}/ | {$$fromgrp}]]
(:details summary="Show '{$$PageListCount}' search results from
'{$$fromgrp}'":)
(:template each:)
(:if equal "{=$Title}" "Home Page":)
* [[{=$FullName} | {=$Groupspaced}]] [- {=$:Summary}-]
[--(E={$$EachCount} P={$$PageCount} G={$$GroupCount} GP={$$GroupPageCount}
PL={$$PageListCount})--]
(:else:)
* [[{=$FullName} | {=$Titlespaced}]] [- {=$:Summary}-]
[--(E={$$EachCount} P={$$PageCount} G={$$GroupCount} GP={$$GroupPageCount}
PL={$$PageListCount})--]
(:ifend:)
(:template last:)
(:detailsend:)
[-{$$PageListCount} pages found from "{$$fromgrp}", excluding
"{$:ExcludePages}"-]
(:template none:)
[[#searchresultlistsend]]

When the page displays before a search I see
[image: image.png]
the first pagelist correctly displays no results, then second incorrectly
displays all pages in the group.

I'd appreciate some other eyes checking this out for me.

I'm, wondering if perhaps (:template defaults request=-group req=1
does not work?

tia

Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20261022/7b9ea953/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27546 bytes
Desc: not available
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20261022/7b9ea953/attachment-0001.png>


More information about the pmwiki-devel mailing list