Setting autonodetitle to Content Profile user, not author.

Status: 
Solved
Question: 

I was looking at the advice in your ebook about using the module 'autonodetitle' to generate the title field for a Content Profile content type. You set it up using the author's name, but sometimes the author is an admin and you want the user's name associated with the profile, in the title.

I cannot find a good explanation of the variables and patterns at one's disposal to put in the autonodetitle pattern field. What does tokens do here? Isn't there a user array available from which to pull the user's full or last name? The module's author says any CCK field text can be used, but how?

Responses

1. Token use?

Ok, the list of available tokens is here: http://drupal.org/node/390482.

The CCK tokens are:

CCK text tokens
[field_scenario-raw] Raw, unfiltered text
[field_scenario-formatted] Formatted and filtered text
[field_example-raw] Raw, unfiltered text
[field_example-formatted] Formatted and filtered text

But how to use them?

The readme shipped with the autonodetitle module explains a little more, but it's geek speak, and poor English.

More here, but still makes no sense to a non Drupal programmer:
http://groups.drupal.org/node/19500#comments

Nor does the official documentation:
http://drupal.org/node/307140

How to get the title of the Content Profile to equal the profile user name?

2. If you use the pattern I

If you use the pattern I suggest, and you create the content profile for another user, you can always set the "authoring info" to the right user.

3. Content Profile content

You can also look at the "Replacement patterns" drop down just below the Pattern for the title: and pick the one that you want and try it out.