Problem/Motivation

It's not immediately clear on taxonomy admin pages how to configure the fields and display for a vocabulary's taxonomy terms. Content types present this option in the type's dropbutton on the content type admin page.

Similar to #552654: Manage Fields and Display Fields links from the Content Types operation table, but for the taxonomy admin page at admin/structure/taxonomy/list.

Proposed resolution

Put "Manage fields" and "Manage display" in the dropbutton. Rearrange the dropbutton so that "list terms" is first, since this is the most-used operation (unlike content types).

User interface changes

 List terms, Add terms, Manage fields, Manage display, Edit vocabulary

Comments

jhedstrom’s picture

Title: Add Manage Fields link to Taxonomy list » Add Manage Fields and Manage Display links to Taxonomy list
Bojhan’s picture

hmm, really? I would like us to, consider the usecase before we draw this consistently line.

yched’s picture

re Bojhan: Well, exact same use case than #552654: Manage Fields and Display Fields links from the Content Types operation table.
The only difference is that core ships with no default fields on taxonomy terms (term name or description have not been moved to be 'fields' in D7), but I don't think this makes those links less valid here than on the 'content types' list.

Bojhan’s picture

Well I understand, but to me that difference is fundamental. In a sense that - we probably do not need to expose these features, unless it starts making sense to use them? Ohh, darn - I will edit this later1

yched’s picture

IMO the lack of consistency between 'content types' list and 'vocabularies lists' will be annoying pretty quick.
There's a 'Manage fields' page behind both, why isn't there a quicklink for vocabs ?

webchick’s picture

I had a discussion w/ Bojhan in #drupal about this. He brought up some good points.

In contrast to content types, which are nearly completely useless without fields, this is not true of any other entity (arguable for users). Adding additional fields to taxonomy terms and comments are both a 1% use case at best (http://drupal.org/project/usage/taxonomy_image shows ~3,500 / ~200,000 users, http://drupal.org/project/usage/comment_upload shows ~3,000 / ~200,000), where adding them to content types is at least a 50% use case (http://drupal.org/project/usage/cck shows ~115,000 / ~200,000 users... way more if you consider that on each one of those sites there are probably 90% of the content types using it). It therefore makes sense to me that the UI for adding fields for content types would be more prominent than adding fields to comments, taxonomy terms, etc.

I do share the consistency concerns, though. We don't want to bury this remarkable feature of Drupal 7 too deeply.

yched’s picture

What about: display the links the moment *some* vocab has some existing fields ?

Bojhan’s picture

That could actually make sense. Have to ponder about it some more.

bdunwood’s picture

Status: Active » Needs review

This seems to be resolved in the current build. I currently see the "Manage Fields" and "Manage Display" tabs in the taxonomy management screens (e.g. /admin/structure/taxonomy/1), regardless of whether or not any fields have been assigned to any vocabularies. I'm a little new at this but am assuming that marking "needs review" is the right action.

amc’s picture

Status: Needs review » Active

"Needs review" is for patches.

xjm’s picture

Version: 7.x-dev » 8.x-dev

We should actually do this now that it's a dropbutton.

xjm’s picture

Title: Add Manage Fields and Manage Display links to Taxonomy list » Add Manage Fields and Manage Display links to the vocab dropbutton
xjm’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB

Attached adds that, plus cleans up the other dropbutton items to use Sentence case.

xjm’s picture

StatusFileSize
new17.83 KB

With patch applied:

vocab_drop_button.png

xjm’s picture

See also: #1340500: Merge "list terms" page into "edit vocabulary" page (which will reduce this to 4 options in the button).

Status: Needs review » Needs work

The last submitted patch, taxonomy-631038-14.patch, failed testing.

xjm’s picture

Status: Needs work » Needs review
StatusFileSize
new757 bytes
new2.22 KB

Attached should fix the test.

Status: Needs review » Needs work

The last submitted patch, taxonomy-631038-18.patch, failed testing.

Bojhan’s picture

Awesome :) Can we perhaps set up some guidelines on where we do and don't show this?

xjm’s picture

Status: Needs work » Needs review

#18: taxonomy-631038-18.patch queued for re-testing.

xjm’s picture

Awesome :) Can we perhaps set up some guidelines on where we do and don't show this?

Hm, could you clarify? Where we do and don't show what? What we have so far for the dropbutton pattern is http://drupal.org/node/1808594.

Bojhan’s picture

We don't really have a pattern for when we show "Manage fields / Manage Displays" in the dropbutton.

xjm’s picture

We don't really have a pattern for when we show "Manage fields / Manage Displays" in the dropbutton.

It should be on any dropbutton that provides operations for a fieldable entity bundle, IMO. Checking through core:

  • admin/structure/custom-blocks has them.
  • admin/structure/contact has them.
  • admin/structure/types has them.
  • admin/config/people/accounts has these operations only in tabs, because there is only one user bundle, so there is no listing where dropbuttons would be used.
  • Comment fields are at (e.g.) admin/structure/types/manage/article/comment/fields, because comment fields are coupled 1:1 to content types. Not sure if this changes once comment is decoupled from node.
  • Files don't have a UI.

Those are the only fieldable ones I know of.

xjm’s picture

#18: taxonomy-631038-18.patch queued for re-testing.

xjm’s picture

Updated the summary. I think this is ready?

pcambra’s picture

This added manage fields & manage display links in operations for every config entity listing #2021063: Use hook_entity_operation_alter() for manage fields and manage display links, I think this one should be marked as duplicated.

berdir’s picture

Status: Needs review » Closed (duplicate)

Yes, it is, didn't I already close this?

berdir’s picture

Issue summary: View changes

Updated issue summary.