On Tuesday 06 August 2002 12:34 pm, Simon Michael wrote:
"Robert Rottermann" <robert@redcor.ch> writes:
I think one of the big differences between ZWiki and CMFWiki is the fact, that CMFWiki has a ZPT skin. Are there any efforts on the way to provide page templates?
Or at least to factor out all these inline dtml pages?
Hi Robert - no, I haven't had a chance to look at that and I'm not aware of anyone else who has. I'd like to figure out how page templates would fit with zwiki. The todo list talks about
gather all into a big wiki mixin that could be mixed with ZPT, PS, etc
Ie there would be variants of ZWikiPage that inherit from page template or python script instead of DTML Document. Do you think that's how it should work ?
-Simon
Hi Simon, I didn't find it that hard to integrate zwiki into an otherwise totally zpt site. The hard part as far as moving to zpt is to pull all the layout code (dtml statements) from the python. For example, all the '<a href' stuff. I think it would be better to have the python process a DTML document, and return some data structure (list or a dictionary) that the zpt template lays out. For example, I wanted to save my session data by encoding each zwiki url using the encodeUrl method. I didn't see an easy way to do this, since the existing code builds the whole '<a href= ...' string. If the python returned a structure that my zpt formatted, I could easily modify append the session id to the url. I don't think it really matters that much what you use for the base class for a zwiki page. Although, using a python script doesn't seem quite right, since a zwiki page is content and not function. My 2 cents ... Mark