Forum OpenACS Development: Wiki Style Input

Collapse
Posted by Malte Sussdorff on
I had the idea that it would be good to have a style (or format) called Wiki, which would applicapble to nearly every input field we have in the system, which would allow the input to be Wiki style.

The most obvious example would be the input field of the forums package, but also news, ETP, file storage description could make use of this.

Now, is there someone already doing this. If not, how would you approach this. For Forums we e.g. have the problem that we deal with html_p, limiting us to html or text input (without the option to wiki'ize).

How would you integrate this in other packages. Should this become a general "textarea" package ?

Regards

Collapse
2: Re: Wiki Style Input (response to 1)
Posted by Christian Hvid on
Have you looked at Zope's structured text? They have 3 general formats for text input: Plain text, HTML and structured text.

Structured text uses text indention for text structuring and has shorthands for making links, bullets and various text formatting.

Also their wiki looks pretty good.

(See http://www.zope.org/Documentation/Articles/STX or http://www.zope.org and http://www.plone.org for examples of its use.)

Collapse
3: Re: Wiki Style Input (response to 1)
Posted by Dave Bauer on
Malte,

This is a good idea. It should be implemented as a acs-templating form widget.

Collapse
4: Re: Wiki Style Input (response to 1)
Posted by Agon Buchholz on
Sounds very interesting; is there someone working on this topic? As far as I know there is at least one Tcl-based Wiki (WiKit, http://www.equi4.com/wikit/, "Based on Tcl, built-in Metakit database, runs almost everywhere, has a local mode", see http://c2.com/cgi/wiki?WikiEngines and http://c2.com/cgi/wiki?WiKit), maybe it's possible to interface this somehow with OpenACS?

Greetings, -asb

Collapse
5: Re: Wiki Style Input (response to 4)
Posted by Jamie Rasmussen on
If you only need basic Wiki functionality, there is an OpenACS module by Hafeez Bana - see this thread.

Although it is for OpenACS 3.5.2, I was able to make it work with 4.5. It is PostgreSQL only. Other than splitting and moving files into 4.5ish locations, I removed the unneeded doc_return and ad_quotehtml definitions and changed all of the joins with the users table to joins with cc_users view. (It was looking for the first_names column.)

Collapse
6: Re: Wiki Style Input (response to 1)
Posted by Roberto Mello on
Hey Jamie,

Is your modified-to-work-with-4.x version available anywhere? I was writing a wiki-like package that would be the base for my Cookbook package, but perhaps I can borrow somethings from your package.

Thanks,

-Roberto

Collapse
7: Re: Wiki Style Input (response to 6)
Posted by Jamie Rasmussen on
I uploaded "OpenACS Wiki" to new-file-storage:
http://sdm.openacs.org/new-file-storage/one-file.tcl?file_id=466
I hope this zip file doesn't have any problems.  I'm not using the Wiki module, I just played with it one evening.