In a node edit page, "Categories" form has weight -3. Which means that instead of staying at the top, it is in the middle of fields whose weights generally range from -10 to 10. This is definitelly a problem for flexinode and other custom nodes with fields that can have weights. One solution is to change (arbitrarily) the weight from -3 to -30 (or anything below -10).
Darius
Comments
Comment #1
brdwor commentedWhat if I don't want "Categories" at the top? Maybe -3 is too high, and it should be -5 or even -7, but we shouldn't remove the ability to move the field.
-1
Comment #2
darius commentedI think either you misunderstand the issue, or I misunderstand you (possible, too :)
In Drupal, 4.6, the form where you specify categories is always at the top of the page. It is intended to be there. It is not possible to move it elsewhere without changing the core code.
> but we shouldn't remove the ability to move the field.
? What field? What ability?
Cheers,
Darius
Comment #3
brdwor commentedI think you are talking about the taxonomy selection boxes. A custom node type may want to move the categories to below a couple fields, example title, artist, or even another category selection that isn't in taxonomy...
Comment #4
darius commentedI just think that the issue we're talking about is a small bug, not a feature. In 4.6, Categories were always on the top, and there was no way to change that. When people with custom nodes upgrade to 4.7, Categories might end up in the middle of the Edit page. That's why it's a bug.
Now, this bug can be interpreted as a new unexpected and undocumented "feature" where by changing field weights one can reposition Categories around (because it has a fixed *hardcoded* weight of -3). But it's a clumsy way to do things, don't you think?
Darius
Comment #5
brdwor commentedMaybe you'd like to reverse this patch also...
http://drupal.org/node/45301
Comment #6
darius commentedYeah, I just saw that thread today; did not know about it before. Maybe you're right and it's a feature now... I'm setting this to "by design" until someone else complains. Thanks,
Darius
Comment #7
morbus iff-3 was deliberately chosen to replicate the appearance of previous 4.6 installs. Note, however, that any one can modify that weight with a simple hook_form_alter (although, granted, you'd have to use a module to do this). There is a desire, from me, for individual vocabularies to "escape" the "Categories" fieldset, and sort with the rest of the form (so that the weight of the vocabulary is actually considered on the same level as the weight of other form elements). This would allow someone to set one vocabulary to, say, -10 (above the Title), another vocabulary to 1 (right beneath Body), and yet another vocabulary to 30 (right before the submit buttons). This, however, requires extensive revisions to the taxonomy.module, and is not something that should be done for 4.7.
Comment #8
rkendall commentedThis is causing a little bit of confusion, especially for some using flexinode.
Issue 61360
Flexinode Title floats when using weight factors
http://drupal.org/node/61360