This is a patch that I have wanted for a while, and esp. with the added menu tabs it has come together very well.

What this patch does is add an additional tab to the "my account" page called unpublished. This tab displays exactly like the front page, but only displays unpublished content that belongs to the user. This allows the user to work on content over multiple editing sessions and then be able to come back and easily find the content. that they were working on, and resume editing.

I find this useful if your are content is over multiple pages and you want to add the links.

One thing that i would like to add is being able to not only seeing your unpublished content but the content of other users that give you permission to review/collaborate on before it is published. Maybe it would be handy to be able to have multiple authors on a single node.

CommentFileSizeAuthor
#14 user_14.patch1.9 KBgordon
#11 user_12.patch1.78 KBgordon
#8 user_11.patch1.84 KBgordon
user_9.patch1.84 KBgordon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

I think that this could well be implemented as a "personal workflow" module. There are endless possibilities with the new access controll lists.

gordon’s picture

Yes the possiblities are endless. I would like to see something more, but at this stage I think this would really help alot of people, I know that it has helped for me.

moshe weitzman’s picture

seems useful. consider making it a contrib module so folks can easily check it out, and we don't wait for core in order to use it.

gordon’s picture

I do feel that this should be something that is in core. In its present form, creating a module for it would be feely easy, but there is not very much functionality in it, so it would be a very small module.

But turning it into a module maybe a good idea, if the idea is going to be expanded further, I would maybe like to see colaboration on a document between multiple users before it gets published. maybe something like an invitation system, that then users the node permisions to allow other users to access and edit your document before it is published.

elias1884’s picture

as far as I am concerned, this strongly belongs to core. for me this improvement goes hand in hand with http://drupal.org/node/7939 as it gives the unexperienced user a way to verify if their node really got submitted, since they might get confused by the "access denied" message they retrieve when published is turnd of in default workflow.

moshe weitzman’s picture

It seems like this functionality is part of the workspace.module in Contrib. The UI may be different, but the idea persists. Perhaps folks could keep on improving workspace ....

tostinni’s picture

A little correction of the patch due to new node_acces function :
Replace :

+    foreach (node_list() as $type) {
+      if (node_access($type, "create")) {

by

+    foreach (node_list() as $type) {
+      if (node_access("create", $type, $user->uid)) {

And now unpublished tab will really appear ;)

gordon’s picture

FileSize
1.84 KB

Here is a fixed version of the patch.

jvandyk’s picture

This seems to duplicate the functionality of the workspace module.

Dries’s picture

The tabs on the user page represents actions one can perform on a user: one can 'view', 'edit', 'track' or 'contact' a user. Adding a tab called 'unpublished' is a bad idea.

gordon’s picture

FileSize
1.78 KB

Yes looking at this, I agree with you. The way that this menu has developed it is no longer appropiate to add this tab here. My next option was to put it under the either the view or edit tabs. I am leaning more towards the view than the edit.

I think that it is a view function because you are not actually editing anything. Also this is an operation that a user can only use on thier user, so it is a private function. What do you think?

I also did a bit more investigation of the patch, and had to make some more changes as the call to the node_access() has changed, and the information that I need is no longer accessible that way.

mcd’s picture

I'd put the tab under Recent Posts, which already has a similar tab for My Recent Posts.

killes@www.drop.org’s picture

Does not apply anymore. Using workspace module would be a better idea, I think. Gordon, please close if you agree.

gordon’s picture

FileSize
1.9 KB

I am going to look at the workspace module, but in the mean time here is an updated patch.

shouchen’s picture

Because the workspace module requiries MySQL 4, and not all of us use it yet, perhaps this patch could make its way into 4.7?

shouchen’s picture

I ask again... Because the workspace module requiries MySQL 4, and not all of us use it yet, perhaps this patch could make its way into 4.7?

eafarris’s picture

You might want to take a look at my unpublished.module, a simple little hack/module which adds a "my unpublished content" link to the navigation menu. It was written for diyplanner.com.

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/eafarris/unpu...

It might not be pretty or correct, but it does work in Drupal 4.6.3.

LAsan’s picture

Version: x.y.z » 7.x-dev

Bringing this issue back to discussion.

gordon: Any news on this?

catch’s picture

Title: A patch to allow users to easily work on unpublished content. » A patch to allow users to easily work on their own

Now that we've got views, it's pretty easy to set something like this up from contrib. So IMO this is won't fix. Something that came out of the UMN usability testing was that users can find it hard to find even published pages they just posted (only available via admin/content or /user/tracker/[n] if they're not in a menu/taxonomy/front paged).

So maybe we should expand this a bit, and consider making an easily accessible (top level navigation menu item?) page with all nodes posted by users, including unpublished - so it's a bit harder to lose things. This is even more the case for users without the administer nodes permission.

gordon’s picture

I don't think this is needed anymore. This can be easily added with views.

I would like to close this.

sun’s picture

Status: Active » Closed (won't fix)

Agreed.