[pmwiki-users] Great pagelist question...
Pico
pmwiki at ben-amotz.com
Wed Aug 30 09:10:42 CDT 2006
Patrick R. Michaud wrote:
> On Wed, Aug 30, 2006 at 08:44:14AM -0400, The Editor wrote:
>> After thinking about it more though, parameterizing $DataValue may be
>> the best way to go, though I'm not sure exactly what you mean by it.
>> I take it you are saying we can somehow set the page variables as an
>> array based on Group.Name. (Actually this is a MUCH better--as it
>> allows much greater flexibility).
>
> Yes, this is exactly what the Cookbook does, so that
> {Cookbook.XYZ$RecipeSummary}
> retrieves the "Summary:" line from the Cookbook.XYZ page,
> as opposed to {$RecipeSummary} which retrieves the "Summary:"
> line from the current page. They're all held in arrays based
> on the page's full name.
>
> And this allows a pagelist template to use {=$RecipeSummary}
> to easily grab the "Summary:" lines from all of the pages
> in the list.
[snip]
I've been meaning to ask, and now seems like a good time: could we have
a look at the code that you used for the Cookbook so that it could be
turned into a recipe, or at least available for others to adapt to their
own sites.
Pico
More information about the pmwiki-users
mailing list