Update taxonomy terms and CCK fields during moderation phase

mfredrickson - March 2, 2007 - 05:02
Project:modr8
Version:5.x-2.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

A client requested the ability to change taxonomy terms during the moderation process. I've added that in the attached patch. This patch should work in situations without taxonomy.module is not enabled. It should work for structured taxonomies - free tags may be another story.

Enjoy!

AttachmentSize
modr8.moderate_taxonomy.patch2.09 KB

#1

quicksketch - January 15, 2008 - 17:54

Thanks Mark, we use this on many of our sites for re-categorizing photos that have been uploaded into the wrong gallery (a taxonomy vocabulary). Here's a reroll to the latest 5.x and a few spacing fixes. I'm interested in getting this added as part of modr8 directly, but I think we'll need a configuration form to adjust what vocabularies should be shown, or just be able to enable/disable the feature site-wide rather than having it always there if taxonomies are available.

AttachmentSize
moderate_taxonomy.patch 1.73 KB

#2

sirkitree - January 15, 2008 - 19:05

+1

#3

quicksketch - January 15, 2008 - 21:04
Title:Moderate taxonomy terms during moderation phase» Update taxonomy terms and CCK fields during moderation phase
Version:5.x-2.0» 5.x-2.3

I don't normally expand an issue into two like this, but the changes are so close to each other the submitted patches would cause conflicts with each other. This takes the taxonomy patch by mfredrickson and adds configuration so you can enable it for only specific vocabularies rather than using all of them. I tested this with free-tagging and normal vocabularies and it works both ways.

The big expansion is that this patch now also supports CCK fields. After configuring which CCK fields you'd like to add to the moderation form, you can modify any CCK value during moderation. The use-case I experienced for this was using node reference fields. Sometime the end-user will node reference content to an incorrect parent, though the item should be approved.

I tested the CCK fields with: Node reference, text, number, fivestar, link, address, date, and even image. All of them work fine as long as you don't use Ajaxy-like buttons provided by imagefield and link modules.

AttachmentSize
Modr8 Settings for CCK and Taxonomy 57.74 KB
Setting taxonomy and fields during moderation 59.79 KB
modr8_taxonomy_cck.patch 6.46 KB

#4

sirkitree - January 16, 2008 - 19:00

sweet, very nice patch. this is highly useful.

#5

pwolanin - January 31, 2008 - 19:55

Hmm, interesting - it would be nice if modr8 could be restructured to support these sorts of added operations without weighing down the core module. Any thoughts?

#6

giorgio79 - July 2, 2009 - 12:42

Great stuff! Is this forgotten? :)

#7

pwolanin - July 3, 2009 - 15:47

Yeah, fell off the radar - care to test and maybe roll a patch for 6x. too?

#8

digi24 - September 13, 2009 - 10:46

It would be really great to see a patch for Drupal 6. I tried to port #3, but I am having trouble to get the subforms to be displayed. (I am aware that the form_alter commands changed between D5 and D6)

 
 

Drupal is a registered trademark of Dries Buytaert.