I want to generate titles when nodes are created but the conditions I use to generate the title only exist at the time of creation. When i edit the node later the title gets broken/changed. I also want the title hidden in the add and edit forms. I had the same problem with Automatic Nodetitles (#1225384: Generate title only on insertion, not on update (D7)). Any suggestions?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bforchhammer’s picture

Interesting request. Not possible at the moment, as you well know, but definitely sounds like something that we could add...

Care to write a patch? I might do so eventually, but I don't have a lot of spare time at the moment.

Bairnsfather’s picture

Title: Do not regenerate title on edit. » Option to not regenerate title on edit

Just tweaking the title. No pun intended. :-)

bunset’s picture

I am needing too not regenerate title on edit, very needed.

klonos’s picture

doub1ejack’s picture

+1

baschke’s picture

same request here :) I had a look into the code but wasn't able to get something working.

codefactory’s picture

It is easy to do this by using the php option and some code like this

if([node:is-new]==0){
//if the node is not new return the previous title
$n=node_load([node:nid]);
return $n->title;
} else{
//you can use the token here
return [some:token];
} 
nithinkolekar’s picture

also looking for this feature and can be borrowed from Commerce AutoSKU

paranojik’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Component: User interface » Code
Status: Active » Needs review
FileSize
3.08 KB

Ported patch from the above mentioned issue on auto node title.

Parkes Design’s picture

+ 1 to have this feature