Easy Publish/unpublish from sellers account
divinevette - April 1, 2009 - 22:11
| Project: | Ubercart Marketplace |
| Version: | 5.x-1.0-beta2 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I would love to have my sellers be able to publish/unpublish their products from the seller tab view in their account. It would just be a link in the table next to each product that says publish or unpublish, just like those view and edit img links. Can someone tell me how to do that?
Or better yet, a batch delete/publish/unpublish feature. It would like the admin content menu, with a column of checkboxes and the delete/publish/unpublish options below and above. What do you think? Thanks

#1
You might be able to accomplish something described here with Views_Bulk_Operations which is another Drupal module. Downside, is that would happen on another page, but could be used for bulk moderation of content for a particular user.
Otherwise you will need to write a simple module and edit this table with form_alter and provide a link which toggles publishing of your products.
Both are acceptable solutions which can be accomplished with minimal coding and only moderate drupal experience.
http://api.drupal.org/api/function/node_operations_publish/5
http://api.drupal.org/api/function/node_operations_unpublish/5