[pmwiki-devel] Puzzled about pagelists returning search results
Simon
nzskiwi at gmail.com
Sun Oct 25 23:37:13 PDT 2026
😀
Simon reacted via Gmail
<https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app>
On Mon, 26 Oct 2026 at 06:53, Petko Yotov <5ko at 5ko.fr> wrote:
> On 21/10/2026 21:34, Simon wrote:
> > I'm, wondering if perhaps (:template defaults request=-group req=1
> >
> > does not work?
>
> Indeed, the attributes req= and request= should be added to the
> (:pagelist:) directive, not to a (:template default:) directive.
>
> They are handled early, before the pagelist "template default" are
> parsed.
>
> If there is req= at that early time and there is no search query
> (?q=term in the URL), the function exits at that point, it doesn't load
> the templates.
>
> Similarly for request=, the pagelist attributes like
> request=group,fmt,order , that are derived from the $_REQUEST array, are
> also merged early. If there are request= attributes in "template
> default", these are ignored.
>
> It always behaved in this order. If we change the order and handle these
> after "template default" is parsed, it may break something else.
>
> We should document this clearly.
>
> Petko
>
> --
> If you upgrade : https://www.pmwiki.org/Upgrades
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/vnd.google.email-reaction+json
Size: 37 bytes
Desc: not available
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20261026/e9ba176b/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20261026/e9ba176b/attachment.html>
More information about the pmwiki-devel
mailing list