-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Greetings!
Tony Lee wrote: | Adding pages to wikis is really easy. You just click on 'Edit this page' | then type in the name of the page you want to format with the words all | cruched together like this: ThisIsForJohn. When you save it you'll get a | question mark after the link/title. Click on that and fill in the page | content. That's it. If you want to link to the same page from other | pages just reenter the title. Wikis are completely flat so you can't | have /topic/topic/article, all articles just have to have different names.
It just came to me that it should be fairly trivial to write a categorizing, configurable wiki with MidCOM.
It would go something like this:
The base settings: install MidCOM, set up MidCOMized website using the "MidCOM site template". Create some topics that use de.linkm.taviewer as the handler component. Include the <(edit-this-page)> element in your style to allow Wiki-like "Edit this page" feature.
What you need to develop: Develop a "wikifying" Midgard formatting filter function that would do the following: * Scan content for WikiWords (and [Wiki Words]) * Run mgd_list_topics_articles_all for your content tree, trying to ~ find article name matches for those WikiWords * For each match construct a /path/to/article and replace ~ the WikiWord with <a href="/path/to/article">&(article.title);</a> * For each WikiWord without match: ~ * If Midgard user is logged in: ~ * Provide the question mark link to MidCOM's article creating ~ interface, presetting the article name to the WikiWord
Then just use mgd_register_filter to register your "wikifying" function and change the <(show-article)> element of de.linkm.taviewer to display article content through the filter.
For added functionality configure your article schema to provide a "Topic" pulldown for user-defined categorization.
And suddenly you have an easy-to-use Wiki with all the power of Midgard's framework behind it :-) I guess this would be the right way to handle Midgard's documentation, as it would provide very easy cross-referencing.
| Tony
/Bergie
- -- Henri Bergius [EMAIL PROTECTED] Consultant Partner Tel: +358-20-198 6032 Nemein Oy http://www.nemein.com/
Nemein.Net -- Project tracking solution for consulting companies http://www.nemein.com/en/nemeinnet/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/k5cHNkT8k497k9IRAhD9AKCjkQs9fA8EAI5iBup6R85UnDYOtACfYQxY bC5KEAW6GoRpTT4SPQ7Bkqc= =u90o -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
