Generalizing node context
Been sitting on this idea for a while: curious to see what people think.
In a nutshell, the idea is to combine and generalize the various flags for a node that are available in node.tpl.php, and open them up to modules.
For example, instead of the $is_front, $page, $sticky, and $teaser booleans, you'd have an array with entries present if the flag is true. Something like this, for example:
$context = array(
'teaser' => array(),
'sticky' => array(),
'page' => array(),
);
Core would take care of shoving those keys in; other modules would given a chance to add their own to a node.
That's the plan. Here's why I think it's cool:
Read moreShare This
Hi there.
I'm currently working on a Share This module similar to the version available for Wordpress using code compatible for Drupal 5. It will display bookmarking sites within a jquery dropdown and allow you to share your site by clicking on the relevant bookmarking site.
Does anyone require this module and maybe intrested in a bounty? I'm looking for $400 and currently have someone intrested and contributing $100.
Here's an example of the module on a Wrodpress Site: http://alexking.org/blog
Also i've setup a Chipin for this too:
http://mitesh.chipin.com/share-this