Hey everyone,

Just wanted to start the process of discussing a Drupal 7 port... Does anyone have plans for a D7 port in the works?

--Ben

Comments

lpalgarvio’s picture

this permission seems to be already in D7.

please alert users to this on the front page and tell them that's another good reason to use this ;)

thekevinday’s picture

StatusFileSize
new6.72 KB

Wrong.

I only see a "View own unpublished content"

I have just ported this to drupal 7.x, here is the 7.x version.

thekevinday’s picture

Status: Active » Needs review
thekevinday’s picture

StatusFileSize
new1.4 KB

update version with minor change.
Also adds dependency that I forgot about.
This requires the following module: http://drupal.org/project/cf

thekevinday’s picture

StatusFileSize
new1.52 KB

Lates changes and bug fixes.

nlounds’s picture

Thanks for posting this! It was just what I needed. Unfortunately, except for the owner and admins, unpublished items still don't show up in any of "Find content" searches. So I'm still trying to figure out how they can find the unpublished content without knowing the URL.

thekevinday’s picture

StatusFileSize
new15.08 KB

I have made a few more changes such as adding back the ability to manually specify access for individual unpublished content types.

I see that it is indeed not showing up for non-admins,non-owners and will look into fixing that.

As far as showing people how to find content, all you need to do is use a custom view from views module and set it to display a listing of content that has the unpublished status.
As an example on how to do this I have attached a text file containing an exported view in which you can import.

geek-merlin’s picture

good thing, sub

jonathan1055’s picture

To allow users to get at their own unpublished content, you can also use Content Management Filter http://drupal.org/project/cmf which adds a tab on the users profile page with all their content. Saves using views to make your own ;-)

There is no D7 version yet, but it is such a useful module, as a replacement for the clunky regular /admin/content that the D7 version will be ready soon.

webflo’s picture

Here is my implementation for Drupal 7. The code lives in my sandbox. http://drupal.org/sandbox/webflo/1074650

Currently its called "view_unpublished_content", but im fully okay to rename this and join forces with view_unpublished. If so i will create a path for view_unpublished. Please test and give feedback.

geek-merlin’s picture

@webflo: great, i'll check this out!
sandboxes are cool.

vint’s picture

Can't believe this one didn't make it in D7, and view own published content did. I believe in D6 I never encountered this issue because we were using the workflow module.

Anyway, thanks for the port, I hope it will appear on the module's page -- probably quite a lot of people missing out because they don't check the issue queue.

lpalgarvio’s picture

cms is rather bulky, requires a lot of modules.

try instead admin_menu views from admin_menu 3.x. you can mix with with the working admin_menu 2.x

johnv’s picture

webflo, is your port different from thekevinday's ?

webflo’s picture

Yes, i implemented this feature via hook_node_access_records(). This is possible since #452538: Enable Node Grants for Unpublished Nodes in in core.

jthomasbailey’s picture

sub

entendu’s picture

Assigned: Unassigned » entendu
entendu’s picture

Status: Needs review » Closed (fixed)

webflo's version is the base for the D7 release. I preferred his use of hook_node_grants() and the lack of dependency on another module.

@webflo, I removed the content browser functionality because a properly configured view (like thekevinday posts in #7 above) should do the trick. However, if you want to spin off that portion of code into a new "view_unpublished_content" addon module of some kind I'd be happy to link to it on the project page!

Thanks all, the D7 release will appear shortly.