You are here

README.txt in view_unpublished 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 5 README.txt
  3. 6 README.txt
View Unpublished
----------------
This small module adds the missing permissions "view any unpublished content"
and "view unpublished $content_type content" to Drupal 7.

This module also integrates with the core Content overview screen at /admin/content.
If you choose the "not published" filter, Drupal will show you unpublished
content you're allowed to see.

Using view_unpublished with Views
---------------------------------
Use the "Published or admin" filter, NOT "published = yes". Views will then
respect your custom permissions. Thanks to hanoii (6.x) and pcambra (7.x) for
this feature.

Common issues
-------------
* If for some reason this module seems not to work, try rebuilding your node
permissions: admin/reports/status/rebuild. Note that this can take significant
time on larger installs and it is HIGHLY recommended that you back up your site
first.

* Block caching: In D7, block caching is disabled for modules that implement
hook_node_grants, such as view_unpublished. There are a couple ways around this
issue, if block caching is valuable to you:
  
  -The core patch in Issue #1930960: Block caching disable hardcoded on sites with
   hook_node_grant() causes serious performance troubles when not necessary
   Patch: https://drupal.org/comment/8647155#comment-8647155
   
  -Block Cache Alter module: https://drupal.org/project/blockcache_alter

Releated isses on drupal.org
----------------------------
[New node permission "view any unpublished content"](http://drupal.org/node/273595)
[Enable Node Grants for Unpublished Nodes](http://drupal.org/node/452538)

Thanks to:
----------
Florian Weber (webflo) and thekevinday for their work on the D7 port.

File

README.txt
View source
  1. View Unpublished
  2. ----------------
  3. This small module adds the missing permissions "view any unpublished content"
  4. and "view unpublished $content_type content" to Drupal 7.
  5. This module also integrates with the core Content overview screen at /admin/content.
  6. If you choose the "not published" filter, Drupal will show you unpublished
  7. content you're allowed to see.
  8. Using view_unpublished with Views
  9. ---------------------------------
  10. Use the "Published or admin" filter, NOT "published = yes". Views will then
  11. respect your custom permissions. Thanks to hanoii (6.x) and pcambra (7.x) for
  12. this feature.
  13. Common issues
  14. -------------
  15. * If for some reason this module seems not to work, try rebuilding your node
  16. permissions: admin/reports/status/rebuild. Note that this can take significant
  17. time on larger installs and it is HIGHLY recommended that you back up your site
  18. first.
  19. * Block caching: In D7, block caching is disabled for modules that implement
  20. hook_node_grants, such as view_unpublished. There are a couple ways around this
  21. issue, if block caching is valuable to you:
  22. -The core patch in Issue #1930960: Block caching disable hardcoded on sites with
  23. hook_node_grant() causes serious performance troubles when not necessary
  24. Patch: https://drupal.org/comment/8647155#comment-8647155
  25. -Block Cache Alter module: https://drupal.org/project/blockcache_alter
  26. Releated isses on drupal.org
  27. ----------------------------
  28. [New node permission "view any unpublished content"](http://drupal.org/node/273595)
  29. [Enable Node Grants for Unpublished Nodes](http://drupal.org/node/452538)
  30. Thanks to:
  31. ----------
  32. Florian Weber (webflo) and thekevinday for their work on the D7 port.