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
Figures...DRK 13 comes out 2 days after my Dev Net subscription expires.
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.
....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
Shlomy -I don't have a diff in the Wiki. Would you like to share?
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
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.
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
I can't speak to the other stuff on the DRK, but the other CF application is a cool photo gallery application.
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?
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.
http://www.shlomygantz.com/... .... still in beta .. but seems to work well so far.
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.
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. :)
Thanks Ray. No rush, just whenever you can get around to it.
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.
Unfortunately I do not know. I can say you should look at what I've done with my other DRK apps.
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.
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.
How can I buy DRK13? Macromedia sales says they aren't for sale...Is there anything I can do?
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.
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.)
As just an FYI, I have an update coming out soon. It corrects a few bugs.
I want credit! I need some more Technorati links ;-)
If _ indicates italics and + indicates bold then how do you enter _ and + ? Is there some escape code?
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.
Is there any plan to add a wikipedia markup parser in Canvas, so we could use the same markup as wikipedia?
No plans - but the rendering rules are something you can play with. If you want to mock something up, I'd take a look.