Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Building a Wiki on Scoop Developer Diary
By Driusan , Section Dev Notes []
Posted on Tue Apr 20, 2004 at 11:48:45 AM PST
I've been growing frustrated with ZWiki lately which has inspired me to try to try and build a wiki on top of Scoop (hence the reason for surreptitiously filing this bug in the hopes of using the same code for wiki revisioning, but ssh! Don't tell anyone.)

I think with autoformatting and the ability to store old versions of stories/pages/whatever most of the pieces needed to build a wiki are in place. So I'm just going to outline my plan to a) make sure it hasn't been done by someone else b) get feedback and make sure I'm not missing something blatantly obvious and c) let people know that I'm working on it.

The plan is to create a new table which will hold, essentially, the page name and the page contents along with the time the page was created. The revisioning code in the bug above already handles keeping track of who made the changes to the page and when. Since wiki page names tend to be alphanumeric and story sids are mostly more numerical I don't see any conflicts with the rid field happening. The history op in the patch above would obviously be expanded to handle displaying of old wiki pages. It also needs to be improved to show what the page was like at that revision of a page/story instead of just showing the old database value along with the new one and it should allow diffing of arbitrary versions, but I'd like to get the basic framework down first.

The next step is to make a wiki op which handles actually showing the wiki pages (and throws in appropriate "Edit this page" links.) I'm thinking this will basically involve making an op that uses the default_template with a URL Template looking something like "/page/command". The function that handles the op would basically fetch page from the database, throw it through the autoformatting code* and put it in the |CONTENT| block by default. If command is defined (the only command I can think of is "edit" right now) then the behaviour will be modified appropriately (Question that just popped into my head: how do I handle http POST requests in scoop?) (Another question: other than diff'ing and editing, what commands would be nice for a scoop wiki?)

The next step after that is to modify autoformat to handle WikiWords and generally be more wiki-ish. (Alternatively build on autoformat and create a new wikiformat mode.)

The next next step is to make it permissions-aware and create some view_wiki and edit_wiki and __ perms.

But first, I need people to point out any problems they see with this plan and ways to improve it.

* In theory wikis should be edited almost as much as they're read, so I think the wiki should store the data before it gets converted to HTML. Converting from autoformat to HTML is simpler than converting from HTML to autoformat mode, especially since the former is already done.

< test title | At what point is a YASS inappropriate? >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· this bug
· Driusan's Diary

Story Views
  23 Scoop users have viewed this story.

Display: Sort:
Building a Wiki on Scoop | 3 comments (3 topical, 0 hidden)
versioning (none / 0) (#1)
by janra on Sun May 16, 2004 at 11:14:15 AM PST

about diffing arbitrary versions, are you still planning on storing entire old versions of the page?

I just had a thought - how does bugzilla handle its diffs? I know the diff perl modules I saw and discussed with you all seemed oriented to handling files on the filesystem, but bugzilla stores the diff in the db and diffs it with a file stored somewhere across the internet... it may be worth checking out how they handle diffs. (Of course, if they rolled their own it'll be a bit less useful...)

--
Discuss the art and craft of writing




north face fleece (none / 0) (#3)
by inur on Mon Nov 28, 2011 at 06:39:28 AM PST

you can buy north face fleeceonline,because the fleece is very good and can save you money .you can go to our stores north face on sale. you can buy all kins of north face fleece jackets and our stores have moncler outlet.so if you want buy High quality and affordable moncle .you can go tomoncler outlet online and moncler uk



Building a Wiki on Scoop | 3 comments (3 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search