The form alters don't check if the node exists yet, so changing the submit buttons always. It doesn't make sense (since the question is already asked, or the answer already posted).

Any objections against this change?

Comments

hefox’s picture

Status: Postponed (maintainer needs more info) » Active

(Meh, using that status makes it ugly purple)

chipcleary’s picture

This is a good issue ... it's right that it's confusing when you edit something but the label implies you are creating it for the first time.

I would like the labels to be clear and self-explanatory. I believe that the current labels are more clear for the common case: posting new questions or answers. At the same time, they are bad for editing.

I'd lean towards changing them in a way that reflects the situation, e.g.,:

  • Ask your question / Save edits
  • Post your answer / Save edits

I like to check other Q&A sites to see how they handle it. Mixed results. What I suggest above is close to drupal.stackexchange.com but answers.yahoo.com uses "submit" after a multi-step creation process.

hefox’s picture

My vote would be to leave them (on the edit form) as what core sets it to (Save?) so that content editing is the same experience for the site.

Hm, if there was a module that could integrate with that provides renaming of submit button, then renaming of the buttons could be optional and overridable (course easy enough to add settings for something like this, though I prefer the optional integration route).

http://drupal.org/project/formtweak
http://drupal.org/project/nodeformsettings
http://drupal.org/project/content_type_extras

None match, but closest I found

chipcleary’s picture

Status: Active » Patch (to be ported)

Updated for 6.x-2.x and committed.

Still to be ported to 7.x-3.x.

I ended up with:
- Ask Your Question / Update Your Question
- Post Your Answer / Update Your Answer

tonymantoan’s picture

StatusFileSize
new1.09 KB

Here is Drupal 7 patch for this issue using your text from comment 4. Note, that this an svn generated patch, so it won't apply directly with git, but should be fine with patch.

tim.plunkett’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new1.07 KB

Looks like the patch in #5 was rolled against 7.x-3.0, here it is against 7.x-3.x.

tim.plunkett’s picture

StatusFileSize
new1.15 KB

Borrowed from node_object_prepare(), the is_new flag needed to be checked as well.

chipcleary’s picture

Status: Needs review » Fixed

Hi ... I've tested this and found that it works in my environment. Marking as fixed. I've also committed this to 7.x-3.x-dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.