I am adding a new profile field. I have to define a category for the custom profile fields. here is what i have configured this field.
Category: Preference
Field Name: Color
Should appear on registration form: YES
It does appear on register form. However to edit this field user has to visit "/user/$uid/edit/Preference" .
I would like either of two-
1) A fieldset being added as "Preference" under "Edit" tab. And the form to edit field "Color" can be present under "Edit" tab.
2) A new tab is being added as "Preference" beside "Edit" tab. The form to edit field "Color" can be present under that tab.
I prefer the first. However i would be happy with 2nd.
None of this is happening. Instead user has to manually type link "/user/$uid/edit/Preference" to be able to edit this new profile field.
Can anyone help me with this?
Comments
I think you will find it there.....
It isn't a tab, per se, but what is referred to as a "category" (one notch less significant than a tab). Click on the edit tab. Then user your browser search function to look for "Preference". It should be to the right of "account settings". It is a live link to just what you are looking for (close to #2, anyway).
If you want to add the selection to the main screen, just make the category "account" or "account settings" (I forget which one). It will be added to the bottom of the regular screen.
Account
That's a great tip. Do you know how to hide the Account "tab" now that it's redundant?
Well, I suppose it is possible
Well, I suppose it is possible by putting a display:none in your css for the "tabs secondary" class.
I wouldn't do that, though, because it is only one of many that can be added. Yes, it looks redundant when there is only one. But if you add anything which creates another one (such as Taxonomy Access Control Lite), then that won't show up, either. And that would be a "bad thing."
drupal777, thank you for the
drupal777,
thank you for the response. i have customized profile template. It displays on entire page. sidebzr is not displayed on this profile page. So i don't see any links.
Is there a way to display it as a tab beside "Edit" tab?
If you want to add the
I tried using "account" as preference. It does display under "Edit" tab. But this cannot be saved. There are some hardcoding in profile module that ignores these custom field with "account" as category.
That doesn't work
You are correct. You can't add the field to the regular Account Settings that way. You will have to use hook_form_alter in a module to do this.
Not that I'm aware of..
I don't know of a way to put it into the tabs. I haven't experimented with adding tabs. I can understand why you would have changed the theme of the profile display, but I don't understand why you changed the theme for the edit. If you are going to change the theme for the edit page, then you have everything at your disposal, including the secondary tabs class.
I have not really customized
I have not really customized Edit page. I have removed sidebars on all these pages. And i don't want to display those links on sidebar on any of these pages.
I am trying to add a tab beside Edit. But it doesn't show up.
Same problem
I have added some custom profile fields and cannot find where a user can edit these fields when they edit their account. I don't see anything in the menu, tabs, or on the screen. Any help where it's located?
How has this not been
How has this not been answered/fixed, it seems like a rather apparent issue?!?!
Could be a themeing issue
The individual tabs for the different profile groups are actually secondary tabs (tabs2). Few modules utilize the tabs2 so not a lot themers remember to stick it in.
Make sure you have something like this in your page.tpl.php:
if (isset($tabs2)): print $tabs2; endif;