Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
I was trying to use the token [node:nid] in the title so that the title look like "Content Submission: 1". To do that, I use the following for the pattern:
Content Submission: [node:nid]
But when a new node is created, the title just display "Content Submission: #". It shows correctly only if I then edit the node and save it. I would really appreicaite it if someone could tell me how to fix this.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#5 | auto_nodetitle-pattern_for_title_not_working_when_create_node-1910016-5.patch | 1.28 KB | bkhandruk |
Comments
Comment #1
Nikdilis CreditAttribution: Nikdilis commentedI can confirm the same problem.
After using the format "example [node:field_fid]", whereas node:field_fid is a serial field (automatically increasing), the title is saved as "example [node:field_fid]".
Only after editing and saving the node again, the title shows as "example 3".
As this prevents the module from working as intended, I set the priority level to "critical".
Comment #2
Dimas_ CreditAttribution: Dimas_ commentedI've the 6.x-1.2 version (tried with 6.x-1.x-dev too) and the same happens! If I put "[field_profile_address-raw]" as a pattern it have no effect when the node (profile) is created. I've to save it again to get title updated.
Comment #3
Renee S CreditAttribution: Renee S commentedConfirmed.
Comment #4
yuraosn CreditAttribution: yuraosn as a volunteer and commentedConfirmed
Comment #5
bkhandruk CreditAttribution: bkhandruk as a volunteer commentedHere's patch to fix this problem.
Comment #6
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedThe patch works as designed.
Comment #7
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedComment #9
gaurav.kapoor CreditAttribution: gaurav.kapoor commented