Closed (fixed)
Project:
Node Add Title
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2013 at 05:42 UTC
Updated:
12 Feb 2014 at 03:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jcmartinezRather than saying that it does not work; could you explain the steps you took, the expected result and the actual result that you saw?
Unfortunately I can't do much with your feedback. This module works for me in two complex sites with many other modules enabled. It also works in a default Drupal install with only this module enabled.
Did you read the description or the README.txt file?
This module changes the title of the pages that contains the forms used for adding new content or editing existing content. That is the title of the "Node Add" and the "Node Edit" pages.
If the description of the module is not clear I'll be happy to consider suggestions and change it.
Comment #2
Triumphent commentedSure enough. I installed and enabled the module. Then went to a content type and saw the two new fields in the (I think it was) Publishing options tab. I entered a test word in each to see the result. But no change was displayed in the corresponding nodes even after clearing the caches. This is what I was expecting to see: A new name on the "Edit" tab of all the nodes based on that content type.
Maybe my expectations were wrong, I don't know.
I didn't say it was a bad module or that it did not work. I said it did not work for me. That means I didn't get the result I was expecting or that "something" was preventing it to perform as designed. Again, maybe my expectations were wrong. Also, I have almost 500 modules enabled on my site and it is not the first time that a newly installed module does not perform there as expected while it works well for others.
I still thinks the idea of creating such a module was a good one.
Hope that helps. :)
Comment #3
Risha commentedJust to give some feedback, the module does work for me as it's supposed to. I just installed the module, enabled it and changed the node add titles under content types edit, really simple to use. Big thanks to the developer, great work!
Comment #4
mibfire commentedTriumphent is right.
This modules doesnt work in same cases. And what are that cases? When some module use hook_form_BASE_FORM_ID_alter() or hook_form_FORM_ID_alter() and use the drupal_set_title in these. And why? It is cos of the order of the alter functions of forms. Take a look at form.inc
So hook_form_FORM_ID_alter() > hook_form_BASE_FORM_ID_alter() > hook_form_alter()
Which modules can cause this? For example the well known i18n module. There is a submodule called i18n_node which overwrites the node title so this module cant take into effect.
/**
* Implements hook_form_BASE_FORM_ID_alter().
* Called by i18n_node_form_node_form_alter
*/
_i18n_node_form_node_form_alter
And to be harder, this function is called in #after_build of node form
So the conclusion is that this module should use hook_form_BASE_FORM_ID_alter() function and #after_build and set weight of the module to prevent other modules to overwrite the title.
Otherwise it is a good module.
Comment #5
mibfire commentedI modified this module and added multilanguage support.
Comment #6
mibfire commentedComment #7
mibfire commentedThe above version is wrong. I have fixed it.
Comment #8
Triumphent commentedInteresting investigating work you did on this mibfire.
I tried to download your version of the module but I get the following error message:
"Cannot extract temporary://update-cache-cbb08fde/node_add_title.tar__0.gz, not a valid archive."
If I have to download it onto my desktop first to open it, may I have the zip instead of the tar file?
Thanks. :)
Comment #9
Triumphent commentedNevermind my earlier comment. I was able to open and install it on the second try.
It's working as intended now. Good work mibfire. :)
Thanks. :)
Comment #10
Triumphent commentedAgain, good work mibfire. :)
Comment #11
mibfire commentedNp Dude;)
Comment #12
Richard Buchanan commentedHere's a patch using mibfire's changes
Comment #13
jcmartinezI just committed the changes suggested above. Please test and let me know how it goes so that we can close this issue.
Thank you all for collaborating!
Comment #14
jemisond commentedI tried to apply the patch and got the following errors:
Hunk #1 FAILED at 5.
Hunk #2 FAILED at 26.
Hunk #3 FAILED at 40.
Comment #15
jcmartinezNo need to apply the patches that are listed above this comment. I have added the code from these patches to the DEV version as explained on comment #13. Probably the failures on comment #14 are due to the fact that the code is already in the module.
NOTE: At the time of writing this some features of the packaging script of Drupal.org are still broken following the upgrade of Drupal.org to D7. Therefore the Dev release of this module is shown as Oct, 01 2013. However, if you download the module, its code will show that the latest update was Nov, 09 2013.
Again, this version already contains the patches suggested above.
Comment #16
rooby commentedThis issue should be marke as fixed then if it has been committed.
I will post some follow up issues though.
Comment #17
rooby commentedAdding links to follow up issues from this patch.