<div dir="ltr">I too have used, and find very useful, nested pagelists.<div>If there is a potential risk or problem with a global variable I'd urge that consideration be given to finding a way to remove the global variable.</div><div><br></div><div>tia</div><div><br></div><div>Simon</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 October 2014 08:39, StefCT <span dir="ltr"><<a href="mailto:stefct4@gmail.com" target="_blank">stefct4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/08/2014 10:22 PM, Randy Brown wrote:<br>
><br>
> I do find that a pagelist template that invokes another pagelist can be<br>
</span>> a /very/ useful technique. Would it be hard to make that work in some<br>
> future version of PmWiki?<br>
<br>
I think I have repeatedly used nested pagelists but haven't encountered<br>
any problems so far.<br>
<br>
For example, I have a page group in which coworkers can enter their<br>
tasks (one page per task) and another group in which projects can be<br>
created (one page per project). Now tasks can be assigned to projects by<br>
simply mentioning the exact project title somewhere in the task<br>
description (no extra page variables, link or category markup required).<br>
<br>
In order to display all corresponding projects to a task in the task's<br>
group footer, I use two nested pagelist templates: The first one<br>
iterates through all projects in the wiki and invokes the second<br>
template with each project's title as a parameter. The second template<br>
searches for said project title in the current task description and<br>
creates a link to the corresponding project page only if the search is<br>
successful.<br>
<br>
Seems to work fine so far. Is there any downside to be expected from<br>
this solution?<br>
<span class="HOEnZb"><font color="#888888"><br>
--StefCT<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
pmwiki-devel mailing list<br>
<a href="mailto:pmwiki-devel@pmichaud.com">pmwiki-devel@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-devel" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a>
</div>