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.
I have a node type with a number of term reference fields (i.e. size, color, shape) that I would like to use to create the title of the node.
So, for example, if I choose 1 foot, blue and round as my terms, I would like the node title to save as "1 foot blue round."
Is it possible to create the rule in such a way to set the title on the CURRENT node? How might I go about accomplishing it if it is possible? (I have had success using rules to set the title of a NEW node, but not the one I'm currently trying to save.)
Comments
Comment #1
saurabh.dhariwal CreditAttribution: saurabh.dhariwal at AddWeb Solution Pvt. Ltd. commentedPlease follow the below steps to resolve your issue:
Step 1 : Enable PHP Filter module
Step 2 : Create rule action with Execute custom php code
Retrieve your taxonomy.
Update your node title with taxonomy term name.
Let me know if any query/concern regarding this.
Thanks!
Comment #2
TR CreditAttribution: TR commented#1 provides a solution.