Hi,

Great module, very handy. But I get a request from some clients for which I installed this module:

Can the automated title not be present in the textfield when creating a new node ? I use the automatic generation when the field is left empty. But, they would like the title to be already there and to modify it if needed.

I could roll a patch I guess, if needed.

Comments

wadmiraal’s picture

Actually, it's such a small modification, I can give it right here:

Old:

/**
 * Implementation of hook_nodeapi().
 */
function auto_nodetitle_nodeapi(&$node, $op) {
  if ($op == 'presave' && auto_nodetitle_is_needed($node)) {
    auto_nodetitle_set_title($node);
  }
}

New:

/**
 * Implementation of hook_nodeapi().
 */
function auto_nodetitle_nodeapi(&$node, $op) {
  if ($op == 'presave' && auto_nodetitle_is_needed($node)) {
    auto_nodetitle_set_title($node);
  }
  else if ($op == 'prepare' && auto_nodetitle_is_needed($node)) {
    auto_nodetitle_set_title($node);
  }
}

Now I'm not saying you must add this. It's only a suggestion :-).

Cheers, thanks again for this module.

manish-31’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

This feature is not necessary.