This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development has now moved to OpenGuides-Dev. Discussion on The Open Guide to London now takes place on OpenGuides-London.

Re: [grubstreet] Some thoughts from last night

[prev] [thread] [next] [lurker] [Date index for 2002/11/9]

From: Ivor Williams
Subject: Re: [grubstreet] Some thoughts from last night
Date: 13:35 on 09 Nov 2002
----- Original Message -----
From: "Kate L Pugh" <kake@xxxxx.xx>
To: <grubstreet@xxxxxxx.xxxxx.xx>
Sent: 08 November 2002 16:53
Subject: Re: [grubstreet] Some thoughts from last night


> On Fri 08 Nov 2002, Ivor Williams <iwilliams@xxxxxxxxxx.xxx> wrote:
>
> > Embedded indexes - this is a possible enhancement to my +index
> > patch. Why not have the ability to include an index inside an
> > existing page? Please let me know if you think this would be useful.
>
> You mean like RecentChanges where you can edit the text on top but you
> still get the automatic list of changes at the bottom?  Yes.  I want
> this very much indeed.
>
I've decided I want to completely rethink and revamp my index patch.

I propose that the only way to get an index is to embed one in a page. Also, the page containing the index will have full control of
how it is rendered. Borrowing some syntax from Template Toolkit:

[% FOREACH country = [[+National Cuisine]] %]
* [[$country]]
[% FOREACH rest = [[+$country]] %]
** [[$rest]]
[% END %]
[% END %]

What do you think? Is TT style syntax too technical for our punters? I am open to other suggestions.

By the way, there does not need to be a page for National Cuisine - this is just a marker that is searched for with the plus. You
could also generate a list from a straight [[]] link, but this will find all occurrences, including references to the page that you
don't want in the index.

When it comes to implementation, I have come around to keeping [[Category foo]] as such pages will contain information about foo,
and one or more indices. This will be much easier to slide in to the existing Grubstreet.

Before I work on this, I would like some feedback.

Thanks in advance,

Ivor.


-- 
grubstreet mailing list
http://london.openguides.org/old-list-archives/