I cleaned up sections of the code to Drupalize them a bit more. Also the textfield for weight was replaced with... you guessed it... a weight field. There was one bit of SQL that wasn't referenced right for table prefixing. That's been fixed as well.
Version 1.1-dev is available at:
http://gilavalleyweb.com/drupal/featured_node.zip
There's no need to uninstall version 1.0-dev. Just disable the module, swap the above folder into your modules directory and re-enable.
Works as promised
Very nice. Not having looked at the code, would it be difficult to enable support for more than one content type, each in its own block? Also, see my comment at http://drupalib.interoperating.info/node/82#comment-176 re. a central page to manage (or at least deselect) featured nodes.
Very cool!
Multi content type support
I figured out supporting multiple content types with a separate block for each. I'm just finishing up coding the update op section of nodeapi and it'll be good to go.
I like the central page admin feature. I'll put it on the list.
Which method do you think is easier to use: views or this module?
Multi Content Type is available
Hey there,
I have version 1.3-dev of Featured Node working and available at
http://gilavalleyweb.com/drupal/mod_dev/featured_node.zip
Since this is still in development, I didn't write it as an update. I didn't figure anyone is running it with real data yet. So you need to completely uninstall the old version, then install the new as usual to get the new database.
I'm having some difficulties getting the central admin that Mark suggested to validate correctly, but I wanted to get the multi-block version up before I go on vacation next week. The code to handle the central admin is in the 1.3-dev module, but is commented out for now.
I'll finish it up after I return.
Phil
The module approach is easier
...because you don't have to click on the 'edit' tab to change a node's featured status -- the featured form is right up front. The taxonomy/views approach is useful but a bit clunky (although I suppose you could use the Taxonomy Batch Operations module to do bulk actions). If you do implement a central admin page, don't worry about integrating the views approach, since it's totally separate anyway.
One more feature that would be neat, but not necessary - an 'auto' mode that randomly makes a node or set of nodes 'featured' for a period.
Alternative way to create (multiple} Featured node blocks
I case you want multiple featured node blocks or want to create arbitrary collections of nodes which you want to display in a block, I suggest you to check out Nodequeue (http://drupal.org/project/nodequeue). It supports multiple content types, taxonomy-based node collections and integrates seamlessly with Views. Read more at http://www.angrydonuts.com/why_node_queue_is_an_important_m
Post new comment