One quick idea to save a node as draft under some limited condition.
1. requires
- CCK
- Content Access
- Your own module with hook_nodeapi.
2. make two example node types 'blog' and 'draft'.
3. 'blog' and 'draft' has same CCK fields besides 'draft' has one checkbox field -- 'save as draft'.
4. access rights
- 'blog' is viewable by anyone, createable by no one, editable by author.
- 'draft' is viewable by author, createable by author, editable by author.
5. The author can only create 'draft'.
6. if the draft node is saved with 'save as draft', the node is saved as 'draft' node type.
7. if it is saved without 'save as draft', the node is saved as 'blog' and is viewable by anonumous users. (need code)
8. The author can edit the published 'blog' node, but there is no 'save as draft' checkbox because it is no longer 'draft'.
Comments
Another simple example to
Another simple example to save a node as draft (private).
1. requires
- CCK with number.module enabled
- Content Access
- yourmodule.module with hook_nodeapi.
2. set content access to story node type as following:
view - anonymous user, authenticated user, author
edit - author
delete - author
2. add a field named 'field_is_draft' to story node type
which is a checkbox and if true it means the node is draft.
3. make yourmodule_nodeapi as folowings:
or
or http://drupal.org/project/save_as_draft ;-)
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz