DME and Nodecarousel released!

Jan 31 2008

Well, it's taken a while to get all the ducks in a row, but finally I've officially checked in and released two new modules for Drupal 5.x: NodeCarousel and the The Drupal Markup Engine. These two modules were originally developed to help bring the new Popular Science website to life, and now they're available for everyone to use.

The NodeCarousel module helps bring the jCarousel plugin for jQuery into easy use for drupalers who want to display their nodes with the ability to scroll through them side-to-side or otherwise shift through the nodes with ajax.

The DME module lets you define markup for your users to use in their posts, and declare exactly what that markup should be replaced with. You don't have to do any mucking around with regular expressions to find the tags you've defined - the DME does that for you, and passes to your custom code the name of the tag, the arguments entered and any and all text enclosed by the tag. On the PopSci website, for example, we declared a tag that lets them decide where images appear in the flow of their articles.

Both of these modules use SimpleTest testing - unfortunately, the NodeCarousel testing still assumes database items, but the DME tests can be run yourself if you like, as the DME is independent from the database.

Give them a try! I've got some definite plans for the NodeCarousel, both in expanding what it can do, and with updating it to the new Drupal 6.

Comments

Mark writes:

Looks great! I'm particularly interested in the DME module - tell me, would it enable me to add inline imagecache images easily?

I've been looking for a good solution to this (well ... not looking very hard, but I've been _needing_ a good solution to this!)

Thanks!

Mark

John Fiala writes:

Yes, it will. You'll need to add some code of your own, but basically by setting up a tag for 'image' with, say, the index of which imagecache image to display, along with anything else you might need - align='right/left/center', for instance - and then handle that by returning an tag with a class you define to handle the left or right float.

I'm on the #drupal a fair bit - if you have trouble, feel free to drop by and ask for a hand. But you probably can handle it yourself.

Pasqualle writes:

Thanks for the great modules. I will definitely try them.

Mark writes:

Hi John

Thanks for the reply. Did you consider using / adapting the Inline API module, which appears to do the same thing as DME?

I'm trying to decide which is right for my needs, and they appear to be exactly the same. :|

Mark writes:

http://drupal.org/project/inline

That's the project page for the inline API

Drupal Theme Garden writes:

Thanks for those great modules.
Shade that there is no good documentation for DME (just README.txt)

bflora writes:

Hi John, this module looks so amazing...but I'm stumped. I've followed the instructions in your readme to a 'T' for creating a nodequeue and a nodecarousel...but now what? How do I get that carousel to actually show up on my page? In your readme you say something about an "override"...but I have no clue what that means. Could you just type out the basic snippet that I need to get a nodecarousel to appear in a block? I can take it from there. I tried looking through the nodecarousel.module file...but the functions that looked promising required a $node_array variable...and your readme says nothing about that. STUMPED. help? Thanks.

David Windham writes:

any ideas of getting node carousel to work in IE6.. but otherwise.. thank you very much.

theneemies writes:

Just discovered this great module. Special thanks for enabling the theme overrides.