Re: virtual pages
Nir Soffer <[email protected]> Mon, 8 Nov 2004 14:11:10 +0200
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <[email protected]> |
On 8 Nov, 2004, at 6:49, [email protected] 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. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click