After consideration, there shouldn't be a problem with the global
$Cursor variable, or {$$PageCount} etc., as the "parent" pagelist has
already output the full wiki markup before that wiki markup (and any
nested pagelists it contains) is processed.
Nevertheless, we should be careful when using nested pagelists as they
can potentially output a lot of data. A misused template can easily
create an infinite loop using all server resources leading to a fatal
PHP error or to a server error. I'm not sure how this could be prevented
- maybe the same way we limit the number of included pages and nested
PTVs - with a global or static counter.
Petko
On 09.10.2014 21:39, StefCT wrote:
On 10/08/2014 10:22 PM, Randy Brown wrote:
I do find that a pagelist template that invokes another pagelist can
be
a /very/ useful technique. Would it be hard to make that work in some
future version of PmWiki?
I think I have repeatedly used nested pagelists but haven't encountered
any problems so far.
_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel