Canvas ColdFusion Wiki

Today the 13th (and final -sigh-) Macromedia DRK was released. My final DRK application, Canvas, is one of two ColdFusion applications featured on the DRK. Canvas is a Wiki application built using the Model-Glue framework.

What I like best about it is how extensible it is. So for example, all formatting and token replacement rules are either CFC methods or CFCs. So for example, to support bold text, this is all that I needed to write:

<cffunction name="render_bold" output="false" returnType="string" priority="1" hint="Use plus signs for bold. Example: +Foo+"> <cfargument name="string" type="string" required="true"> <cfargument name="webpath" type="string" required="true">

<cfset arguments.string = reReplace(arguments.string,"+(.*?)+", "<b>\1</b>", "all")>

<cfreturn arguments.string> </cffunction>

The hint from the method is used to automatically generate editing instructions for the user. More information can be found at the project page:

http://ray.camdenfamily.com/projects/canvas

I hope to have a demo set up soon.

Archived Comments

Comment 1 by Scott Stroz posted on 11/3/2005 at 4:00 AM

Figures...DRK 13 comes out 2 days after my Dev Net subscription expires.

Comment 2 by Rob Brooks-Bilson posted on 11/3/2005 at 5:08 AM

Scott, if you renewed your DevNet license as a Studio 8 license, you should still get a copy of the DRK. At least that's what I was told when I converted my DevNet licenses.

Comment 3 by Shlomy Gantz posted on 11/3/2005 at 6:05 AM

....and I was just about working on a CF wiki (Didn't like the machii one)...already wrote a text diff tool and all.... I guess I'll have to wait for the DRK

Comment 4 by Raymond Camden posted on 11/3/2005 at 6:49 AM

Shlomy -I don't have a diff in the Wiki. Would you like to share?

Comment 5 by Gareth Edwards posted on 11/3/2005 at 7:00 AM

Could someone tell me what is contained within the DRK 13?

We are a Macromedia partner and aparently we get sent the DRK cd's, just curious what is in this one.

Cheer
Gareth

Comment 6 by Scott Stroz posted on 11/3/2005 at 7:40 AM

Rob - I haven't renewed as a Studio 8 license...if memory serves me I have like 60 or 90 days after it expired to 'transfer' it.

Comment 7 by Shlomy Gantz posted on 11/3/2005 at 6:43 PM

http://www.bluebrick.net/te... - Right now it compares line by line, I have to add word comparison (which should be easy cause I am actually comparing arrays) ... I'll send you the code later.

Shlomy

Comment 8 by Raymond Camden posted on 11/3/2005 at 7:50 PM

I can't speak to the other stuff on the DRK, but the other CF application is a cool photo gallery application.

Comment 9 by Chris posted on 11/3/2005 at 8:17 PM

A Ray+Shlomy wiki would rock. Thanks for writing this Ray. Can you compare it, feature-wise, to any of the other wiki products out there? DocWiki, MediaWiki?

Comment 10 by Raymond Camden posted on 11/3/2005 at 8:29 PM

My wiki basically only does:

Editing
Versioning

There is no security. There aren't "sections" as I see in some wikis. WikiTerms are supported (thanks to Sean Corfield for the code). I'll try like heck to get a demo up today sometime.

Comment 11 by Shlomy Gantz posted on 11/3/2005 at 10:10 PM

http://www.shlomygantz.com/... .... still in beta .. but seems to work well so far.

Comment 12 by Mitch Hastings posted on 11/4/2005 at 12:33 AM

Ray,

Really like the product pages you've been putting together. They help when we are trying to get a handle on your applications and their features. If you're inclined, I'd really like to see a product page for Harlan (I'm sure others would also). Since I don't have access to the DRK, it has really remained a mystery to me.

Comment 13 by Raymond Camden posted on 11/4/2005 at 1:32 AM

I'll try my best. Not that it takes me a lot of time to write, basically, three paragraphs of text and take a screen shot. :)

Comment 14 by Mitch Hastings posted on 11/4/2005 at 2:19 AM

Thanks Ray. No rush, just whenever you can get around to it.

Comment 15 by Saeed Richardson posted on 11/9/2005 at 6:46 PM

So I already know the answer but just figured I'd ask anyway (with hopes and dreams)...

Is the "only" way to obtain the code to have a subscription to DRK? If so, are there any ideas/thoughts/plans for a future "non" DRK release (say after DRK goes away)?

Thanks.

Comment 16 by Raymond Camden posted on 11/9/2005 at 8:15 PM

Unfortunately I do not know. I can say you should look at what I've done with my other DRK apps.

Comment 17 by Al Everett posted on 11/21/2005 at 8:20 PM

Intriguing. How much work would it be to change the tags used? For instance, I would rather have something like how MediaWiki does things. ''' indicates bold, for instance. Is it just a question of changing the regex?

Personally, I don't like CamelCase as the method of designating a wikilink. It makes it hard to get appropriate case on pages for things like ThisIsAWikiPage and ThisIsWhatIDo. I would prefer [[This Is A Wiki Page]]. Of course, I have been spending FAR too much time at Wikipedia.

Comment 18 by Raymond Camden posted on 11/21/2005 at 8:23 PM

Ah, so - this is what is really cool about Canvas (ok, I'm biased). All of the 'rules' are method based. Don't like WikiTerms? Just delete, or comment out the method. Don't like +foo+ for bold? Just edit the method. :)

FYI, there is an update to Canvas coming out very soon to fix a bug with WikiTerms.

Comment 19 by Nathan Miller posted on 11/22/2005 at 1:22 AM

How can I buy DRK13? Macromedia sales says they aren't for sale...Is there anything I can do?

Comment 20 by Raymond Camden posted on 11/22/2005 at 1:38 AM

Sorry, I think they are impossible to get right now.

It doesn't help much - but - notice what has happaned to every single other DRK app I've written - about 6 months later.

Comment 21 by Saeed Richardson posted on 12/10/2005 at 3:53 AM

Just out of curiosity, has anyone actually taken Canvas from the DRK and used it on a public site? It would be nice to look at if available. (Yea, I ... ugh .. could still wait 6 months but was just curious now.)

Comment 22 by Raymond Camden posted on 12/10/2005 at 3:59 AM

As just an FYI, I have an update coming out soon. It corrects a few bugs.

Comment 23 by Rob Brooks-Bilson posted on 12/10/2005 at 4:11 AM

I want credit! I need some more Technorati links ;-)

Comment 24 by jim collins posted on 12/18/2005 at 4:32 AM

If _ indicates italics and + indicates bold then how do you enter _ and + ? Is there some escape code?

Comment 25 by Raymond Camden posted on 12/18/2005 at 5:47 AM

Good question. I probably need to change my regex from .* to a nonspace*, so that (space)+(space) will be ignored. I'm planning an update soon in this area anyway.

Comment 26 by Spanoudis Menelaos posted on 7/13/2007 at 4:56 PM

Is there any plan to add a wikipedia markup parser in Canvas, so we could use the same markup as wikipedia?

Comment 27 by Raymond Camden posted on 7/13/2007 at 5:59 PM

No plans - but the rendering rules are something you can play with. If you want to mock something up, I'd take a look.