[pmwiki-users] Could someone summarize the programmatic use of page lists?
rvarick at gmail.com
Tue Jul 5 11:57:25 CDT 2011
Thanks for the response, but unfortunately that recipe is a bit too dense
for me to make sense of.
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
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.
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?
On Sat, Jul 2, 2011 at 6:29 AM, Peter Bowers <pbowers at pobox.com> wrote:
> On Thu, Jun 30, 2011 at 1:55 PM, Ryan Varick <rvarick at gmail.com> wrote:
>> 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
>> Check out Hans's "Powertools" recipe. He has pagelist being used within a
> markup expression context which should be very helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users