Embedded to-do

mikeryan's picture

Still waiting for the Drupal 6 CCK to set up a to-do node type. But, after posting my Boston Drupal Meetup notes with a few follow-up items embedded, I was thinking of a direct way to turn those pieces of text directly into to-do items without leaving the page I'm editing. Off the top of my head:

  • When editing, put <a class="todo-item"> around the text comprising the item (add custom buttons to WYSIWYG editors to simplify this).
  • When saving the main node, create a todo node for anything so marked without an id parameter. Embed a checkbox with the item in the main node, and add parameter id="todo-<nid>" to the <a> tag, and of course an href to the to-do item node.
  • When the containing node is displayed, the checkbox for each embedded to-do item reflects the done status of the node - and can be checked on and off right there (take a look at the fasttoggle module to see how to do this).

And... I can think of any number of one-plusses for this, but it's time to go now...

3/30 update: Still thinking about productive ways to track ideas/to-do items/random notes... Right now, before approaching the above, what I'm looking for is a light-weight node creator/editor, like a "Stickies" application. Actually, that's backwards - the thought process shouldn't be starting with a Drupal node and making it stickie-like, I should start with the stickie concept (very easily and quickly jot down notes) and think about how to save the stickies to Drupal nodes, then enhance the concept with taxonomy etc...