<div class="gmail_quote">On Tue, Jul 5, 2011 at 12:57 PM, Ryan Varick <span dir="ltr"><<a href="mailto:rvarick@gmail.com">rvarick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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></blockquote><div> </div></div>I understand the desire for a simple example which does what you want, but for lack of such I'm afraid you are going to need to do some editing of the recipe and putting echo statements in key places to understand what's going on.  In particular a statement such as this:<br>
<br>echo "DEBUG: opt=".print_r($opt,true)."<br>\n";<br><br>when placed in the right location will be helpful for you.<br><br>I believe that you will find that a markup expression like this:<br><br>
{(pagelist group=Foo order=name anotheropt=abc searchterm term2)}<br><br>will end up with an $opt having these elements:<br><br>$opt['group']='Foo'<br>$opt['order']='name'<br>$opt['anotheropt']='abc'<br>
$opt['']=array('searchterm', 'term2')<br><br>or something like that.  You can check out Cookbook/ParseArgs for more specifics (I'm 99.9% certain PowerTools is using ParseArgs() to handle this).  <br>
<br>Ultimately putting trace/debug statements into code is the way to understand how it is working.  (Obviously you will need to do this research/learning in a non-AJAX environment first or else switch from echo to error_log($msg, 3, $pathname) or the equivalent.)<br>
<br>-Peter<br>