Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I would like to be able to use this the node id in the title generated by this module and I'm wondering if there is any way to generate the title after the node is saved and the nid is generated.
Thank you!
Comments
Comment #1
fagofor most cases, the way it works suffices and performs better. So I won't change this.
However, if you want to do that, I'd suggest to write a simple "set the node title" action for workflow-ng (as ANT workflow-ng integration), which would allow you to do this.
Comment #2
Stefan Vaduva CreditAttribution: Stefan Vaduva commentedInteresting.. I didn't know about the workflow-ng module. Thank you very much! I'll try it and then I'll post here the solution if it works.
Comment #3
Stefan Vaduva CreditAttribution: Stefan Vaduva commentedOne question regarding ANT and workflow: how can I see the ANT action in workflow?
Comment #4
fagothere is no such action yet. This was just an implementation idea.
Comment #5
Stefan Vaduva CreditAttribution: Stefan Vaduva commentedFago, I didn't manage to solve the problem with the workflow-ng module so I've modified your module like this:
So, if there is {nodeid} in the title, this is replaced by the actual id of the node. Do you think is safe for me to use your module modified like this?
Comment #6
takinola CreditAttribution: takinola commentedThere's a simple workaround using the Rules (or Workflow-ng) module
See http://drupal.org/node/360359#comment-1460918
Comment #7
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commented