Edit the Settings of the Profile Content Type
As mentioned above, when the Content Profile module is enabled, it creates a new content type named Profile. To use this new node type effectively, we need to change the default settings.
To do this, click on the Administer | Site building | Content types link, or navigate to admin/content/types. Click the Edit link for the Profile content type.
The Automatic Nodetitles module — enabled earlier in this chapter — adds a new fieldset labelled Automatic title generation at the top of the administrative screens where we edit content types.
Profil© fl^i^y Content profile Manage fields Display fields v Automatic title generation O Disabled
® Automatically generate the title and hide the title field O Automatically generate the title if the title field is left empty
Pattern for the title:
|[author-name]rs profile
Leave blank for using the per default generated title. Otherwise this string will be used as title. Use the syntax [token] if you want to insert a replacement pattern.
The ID for excluding or including this element is: edit-ant-pattern - the path is: admin/content/node-type/profile
& Replacement patterns ^^
As shown in the preceding screenshot, we have two options. For the first option, we want to select Automatically generate the title and hide the title field.
For the second option—Pattern for the title—we should enter [author-namej's profile. [author-name] is a token; when the node is created, the token will be replaced by the username of the person creating the node. So, if a user named Jill created the profile node, the title would be Jill's profile.
The Token module allows us to use a wide range of tokens in addition I
to [author-name]. To see the full list of available tokens, expand the I
Replacement patterns fieldset as indicated in the preceding screenshot I
The settings listed here also need to be adjusted:
• In the Submission form settings section, delete the Body field label. We do not want this node type to have a body field; we will add all needed fields using CCK.
• In the Workflow settings section, set the Default options to Published, and Attachments to Disabled.
• In the Comment settings section, set the Default comment settings to Disabled.
After you have made the necessary adjustments, click the Save content type button to submit the form and save your changes.
Post a comment