[Moin-devel] Re: 1. virtual pages (Alexander Bernauer)
Nir Soffer
nirs at actcom.net.il
Sun Nov 7 03:06:25 EST 2004
On 7 Nov, 2004, at 6:46, moin-devel-request at lists.sourceforge.net wrote:
> The site will consist of mainly two parts:
> 1) Patent information stored in a SQL database
> 2) User annotations stored as ordinary wiki pages.
I would not use the proposed virtual pages concept. This would be the
most expansive way to to this.
I would try:
1. A macro that query the database for detail, and fill them in an html
template. Don't use wiki markup here, its expensive to parse and
format. You can change the template and have all the wiki updated.
example:
[[GetPatent]]
the macro will use the page name to get the patent data from the
database
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]
The included "/Comments" sub page will have #acl All:read,write.
This edit hack can be better, but this is what you can do with current
syntax. One can build a better macro to to this, like
[[Edit(PageName)]]
More information about the Moin-devel
mailing list