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

CommentFileSizeAuthor
patch_23837 bytesdarius

Comments

brdwor’s picture

What 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

darius’s picture

I 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

brdwor’s picture

I 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...

darius’s picture

I 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

brdwor’s picture

Priority: Normal » Minor

Maybe you'd like to reverse this patch also...

http://drupal.org/node/45301

darius’s picture

Status: Needs review » Closed (works as designed)

Yeah, 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

morbus iff’s picture

-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.

rkendall’s picture

Version: 4.7.0-beta3 » 4.7.0

This 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