This is a general problem in drupal, but my question is specifically about flexinode. Due to the limitations of the current profile.module, I am using flexinode for profiles and I have a profile type that has 25 fields.

The problem- I can only weight 21 and the rest get in between the carefully weighted fields and completely destroy the order.

It seems a serious oversight to limit the weighting to 21. Is there a way around?

Comments

You can look for fields that "go together"

I get around this by looking for modules that go together but already have an order (alphabetic for example) and then assign them the same weight.

------------------------------
Adding Understanding

--
Blog: Joshua Brauer dot com | Drupal Support: Acquia

If two or more fields have

If two or more fields have the same weight, they are weighed alphabetically, I believe.

Thanks for the

Thanks for the responses.

Yes, the alphabetical ordering does work, but requires all kinds of contortions in naming simply to get the ordering right. This really seems like a design flaw that needs to be addressed. I am going to raise an issue.

I got around my problem by combining some fields together and deleting some, but this is so hackish compared to a clean solution.

Modify the code

Jack up the number of weights by modifying the code.

--
Get better help from Drupal's forums and read this.

Glad to know this is

Glad to know this is possible.

But, it has always mystified me why the number isn't more. With taxonomy (one of the unique points about Drupal), one is talking about at least dozens of categories, if not hundreds, especially for a large site and there should be at least be an admin defined option to increase the number of weights at will.

it is wierd indeed. But

it is wierd indeed. But maybe there was a good reason for that. The best solution from my point of view is to add an admin option for number of weights. POst an issue if u didn't do that.

:)

:)

This usually comes up as a

This usually comes up as a problem doing surveys. I upped the number in the module's code, allowing me to have a lot more options for the weight.

I think they picked small numbers to make it easier on people, figuring that most of those who needed higher numbers could either change the code themselves or could do it if shown how.

--
Jenni S.

--
Jenni S.
http://www.nulookmedia.net
Portland, OR metro area
Contact Me

This sounds great. Could you

This sounds great. Could you tell me where to change the code?

In the flexinode module look

In the flexinode module look for this:

  $form .= form_weight(t('Weight'), 'weight', $edit['weight'], 10, t('Optional. On the content editing form, the heavier fields will sink and the lighter fields will be positioned nearer the top.'));

It's the 10 that you'll want to change. Whatever you change it to you'll have twice that many options plus 1 (so 15 would give you -15 to 15).

HTH!

--
Jenni S.

--
Jenni S.
http://www.nulookmedia.net
Portland, OR metro area
Contact Me

FYI: if not using flexinode

For a vanilla 4.7 setup, see line75 in the system module:
$type['weight'] = array('#input' => TRUE, '#delta' => 10, '#default_value' => 0);

flexinode and taxonomy?

I did the following,,,

- modified flexinode.module, line 986
-- changed delta from 10 to 60
-- modified line 77 of system.module
- changed delta from 10 to 60

The flexinode fields are always weighted above the category I setup, no matter how high the value of the category weighting. Any ideas?

Oops!

How did I miss replying to you. Thanks for the tip. Still useful.

And, janvs, thanks for the 4.7 update!