Thanks for the response, but unfortunately that recipe is a bit too dense for me to make sense of. <div><br></div><div>In particular, I do not understand the $opt parameter -- how it is built, what is necessary for pagelists, etc. I have a vague idea of how markup is translated, but I have no idea how to achieve the same effect without markup. </div>
<div><br></div><div>To give a specific example, I have some client-side Javascript that fires off an AJAX call to PmWiki with a custom action handler. I want to return a JSON response, but I do not know how to use MakePageList() without starting with (:pagelist:) markup. </div>
<div><br></div><div>I think a simple example that explains the process from beginning to end would help me understand more complex recipes like the one you provided below. Does that make sense?</div><div><br></div><div>Thanks,</div>
<div>Ryan<br><div><br></div><div><div><br><div class="gmail_quote">On Sat, Jul 2, 2011 at 6:29 AM, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">On Thu, Jun 30, 2011 at 1:55 PM, Ryan Varick <span dir="ltr"><<a href="mailto:rvarick@gmail.com" target="_blank">rvarick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Ideally, I would like to see a "hello world" recipe for recreating something basic like "(:pagelist:)" or "(:pagelist group=Main:)" without actually using the pagelist markup on a wiki page. Perhaps a recipe that takes a directive like "(:pagelistexample:)" and returns the actual pagelist result. Hopefully from there, I can deduce how to construct more elaborate pagelists.

<p></p><p><br></p></blockquote></div><div>Check out Hans's "Powertools" recipe.  He has pagelist being used within a markup expression context which should be very helpful.<br><br>-Peter<br></div></div><br>

</blockquote></div><br></div></div></div>