I'm trying to create a feature that includes an Automatic Nodetitle.

I want to change two things related to Automatic Nodetitle: Hide Title in content creation and populate the field with tokens.

How would I go about this?


Use the strongarm module. When creating the feature select "Strongarm" from the component section then look for the variables that start with ant_{content type name}

Automatic Nodetitle can have up to 3 different variables for every content type.

ant_'{content type name} ant_pattern_'{content type name} ant_php_'{content type name}

Export those variables out with your content type and you should be ok.

This works in Drupal 6 & 7.

  • Manual export of Strongarm variables == bummer! :) – tim.plunkett Jun 10 '11 at 23:48
  • Lol @ tim, I know I'm one of those guys that like to select my exports ;) – ericduran Jun 11 '11 at 21:25
  • Marking this answer because it doesn't involve manually patching anything at this point and gets my feature working. – WernerCD Jun 11 '11 at 23:01

Apply the patch I wrote, #881170: Add Features support to Automatic Nodetitles, and it will work fine. When it works, comment on the issue and maybe the maintainer will eventually commit it.

  • That's for D6 tho? – WernerCD Jun 10 '11 at 21:57
  • There's a patch here for D7. I lost interest in writing a better patch for D7 because the maintainer is AWOL. – tim.plunkett Jun 10 '11 at 23:48
  • Yeah... seems to be some good stuff that's dead on the vine. I'll check that out. – WernerCD Jun 11 '11 at 1:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.