I appreciate this module and it works well but the categories (fieldsets) are sorted in a weird order. Any idea how to fix that? Can they be given a weight?

Comments

MBroberg’s picture

There is a Profile Category Weight module that assigns a weight to each category. Is there any way to get this module to recognize those weights?

aidanlis’s picture

Hi,

Yes, that can probably be integrated ... I'll put it on my list of todos.

aidanlis’s picture

Status: Active » Fixed

All done, released in next version!

MBroberg’s picture

Thank you, that was super fast!
It works well now as long as I set the category weights to -10, -9, -8, etc.
When I had them set to 1, 2, 3... they started intermixing with the theme and block configurations.
Not sure what to do about that since I don't have control over their weights.

MBroberg’s picture

Yes! I just found the Form Defaults module.
That allows me to set weights or turn off features in forms.

So in summary,
I used:
Profile (core) to create categories
One Page Profile to pull all of the categories into one page and get rid of the tabs
Profile Category Weight to order the categories created with Profile
Form Defaults module to order the categories and move or get rid of the fieldsets created by other modules
My Account Alter to change the way the results look in "My Account"

This explains why I end up with 50 modules for a "simple" site. ;)

Thanks for your hard work, I really appreciate it!

In hindsight I might not have needed Profile Category Weight after all since Form Defaults seems to do the same thing.

aidanlis’s picture

Bit of a bummer that it has to be that way, I wish I could say it would be easier in D7.

Because having to install 5 modules to do this is a bit ridiculous, I've spent most of the night adding a sort order to the fieldsets. I've released it as a new version, check it out.

roball’s picture

Version: 6.x-1.5 » 6.x-1.7
Status: Fixed » Active

Hi Aidan,

Thanks for your module! The One-page-profile behaviour should be default in Drupal core, IMO. Splitting the user profile into several tabs is a bad idea. On all Drupal sites I am developing and maintaining, most users even do not recognize there are other places than the user profile landing page where they could (or even must) fill in their data.

Adding support for category sorting order directly into your module is a great enhancement. However, v1.7 gives the error

PHP Fatal error:  Call to undefined function _onepageprofile_get_categories() in /etc/drupal/all/modules/onepageprofile/onepageprofile.module on line 48

when trying to open admin/settings/onepageprofile

roball’s picture

Status: Active » Fixed

I am sorry - my last comment was a duplicate of #675970: Missing function _onepageprofile_get_categories().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bryancasler’s picture

Version: 6.x-1.7 » 6.x-1.9
Category: feature » bug
Status: Closed (fixed) » Active

Sorry, I have to re-open this issue. I am using the "Profile Category Weight" v1.1 and "One Page Profile" v1.9 and yet the order of output still appears to be random.

aidanlis’s picture

Status: Active » Fixed

Get rid of profile category weight, and go to the settings page for onepageprofile to change the category order.

bryancasler’s picture

aidanlis I completely missed that settings page. I set my preferences there and everything worked out great. So far I don't see a conflict with the "Profile Category Weight" module. Thanks a million.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.