[Moin-devel] Re: virtual pages
Nir Soffer
nirs at actcom.net.il
Mon Nov 8 04:16:47 EST 2004
On 8 Nov, 2004, at 6:49, moin-devel-request at lists.sourceforge.net wrote:
> On Sun, Nov 07, 2004 at 01:01:33PM +0200, Nir Soffer wrote:
>> example:
>> [[GetPatent]]
>>
>> the macro will use the page name to get the patent data from the
>> database
>
> If I get your right, this would leed into having thousands of wiki
> pages
> for patents, which all have the same content, i.e. the macro calls.
>
> But this is what I wanted to avoid.
>
> I thought of having the necessary wiki markup once parameterized with
> the page name when called.
Yes, your virtual page idea will solve that. make that main page
content generated by your virtual page generator, then let the wiki
parse it. With markup of two macro calls and a link, it make sense.
>
>> 2. Page template for wiki bug page. You can use the blog style hack,
>> having the macro on an acl read only page, and the comments on a sub
>> page:
>> example:
>>
>> #acl All:read
>>
>> [[GetPatent]]
>>
>> [[Include(/Comments)]]
>>
>> [http://.../Comments?action=edit - add a comment about this patent]
>
> After editing the comments page it would be practical if the user would
> be redirected to the patent page again.
> Do you see a practical way to do this?
This is already implemented, use the backto=PatentPage argument in the
edit url. See live example here:
http://moinmoin.wikiwikiweb.de/SimpleBlog
There is also blog marco, and some ideas about blogs in the moinmoin
wiki. Try the new google like search.
More information about the Moin-devel
mailing list