4

I want to allow some users (a role) to change the node creation date (ideally on the node's form).

enter image description here

  • I could add permission 'administer nodes' to this role but it's too strong
  • I could create a new field for this date, but i want to keep the drupal submitted informations on the top of the node

If someone have any idea, thanks

2
  • What do you mean by "keep the drupal submitted informations on the top of the node"? And I strongly suggest to split this question in 2 steps: 1) How to make date editable and 2) how to limit it to certain roles.
    – Mołot
    Commented Sep 3, 2013 at 13:42
  • For example, a news is created today on my website, but the website is an old one, and the news should have been created 1 year ago. I want the allow the user to change the node's creation date, otherwise the submitted informations would be wrong with the current date
    – pico34
    Commented Sep 3, 2013 at 13:48

1 Answer 1

13

You want Override Node Options module.

The Override Node Options module allows permissions to be set to each field within the Authoring information and Publishing options field sets on the node form. It also allows selected field sets to be set as collapsed and / or collapsible.

In addition you may be interested in Date Popup Authored to use a datepicker on that field.

4
  • Perfect ! Thank U. Note that in the Date Popup Authored module a permission verification can make popup not working for non admin user: date_popup_authored_form_alter() line 122 $form['author']['#access'] is empty. Thank you again
    – pico34
    Commented Sep 4, 2013 at 7:56
  • more details here: drupal.org/node/1090164
    – pico34
    Commented Sep 4, 2013 at 7:58
  • update the override_node_options module's weight to -1 works
    – pico34
    Commented Sep 4, 2013 at 8:07
  • 1
    Oops I forgot about that. Now I remember, there's an issue with a patch in override_node_options' queue that has been already committed, but only available in -dev version by now.
    – jonhattan
    Commented Sep 4, 2013 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.