slightly related to #744258: admin/structure/taxonomy paths have to use machine_name, not vid (find a better issue about the taxonomy vocabular list admin page)

Problem/Motivation

"viewing" something is not usually in the drop button. In this case it is and I eventually found it. What I wanted to do was to click on the name of the vocabulary to get to the "list" tab.

Proposed resolution

Make the name of the vocabulary a link to the list tab.

Remaining tasks

create initial patch

User interface changes

link-vocab-name-to-list-terms-2013-01-17_1522.png

API changes

No API changes.

Comments

yesct’s picture

StatusFileSize
new77.47 KB

Not exactly the same situation, but close:
See the more common pattern of linking the name of something, and having edit in the drop button on the other end of the table.

link-and-edit-2013-01-17_1654.png

sun’s picture

Title: link name of vocab in admin/structure/taxonomy to the list of terms in a vocabulary » Make vocabulary label in administrative listing link to its list of terms
Priority: Minor » Normal

Clarifying issue title.

If we do this, then I think it should be consistent for most Configurables; e.g., also applying to content types on admin/structure/types, and so on.

larowlan’s picture

andypost’s picture

We also need to decide on field_ui operations and probably delete operation + translate

joachim’s picture

Currently, the label in each row is not bad in the base EntityListController class. So if we're wanting to make this change consistently across all entity types, it means a lot of classes to change.

I'd suggest fixing #2084255: add label to rows in EntityListController first.

yoroy’s picture

Version: 8.0.x-dev » 8.2.x-dev
Issue summary: View changes
pguillard’s picture

Status: Active » Needs review
StatusFileSize
new575 bytes

So, this small patch, only addressing the vocabulary label link in administrative listing.

joachim’s picture

Status: Needs review » Needs work
+++ b/core/modules/taxonomy/src/VocabularyListBuilder.php
@@ -68,7 +68,7 @@ public function buildHeader() {
+    $row['label'] = \Drupal::l($entity->label(), $entity->urlInfo('overview-form'));

The docs for l() say:

> This method is a convenience wrapper for the link generator service's generate() method. For detailed documentation, see \Drupal\Core\Routing\LinkGeneratorInterface::generate().

So presumably this could be called on an injected service instead?

andypost’s picture

Issue tags: +Needs tests
+++ b/core/modules/taxonomy/src/VocabularyListBuilder.php
@@ -68,7 +68,7 @@ public function buildHeader() {
+    $row['label'] = \Drupal::l($entity->label(), $entity->urlInfo('overview-form'));

This should use '#type=>link' as \Drupal\node\NodeListBuilder::buildRow() use

andypost’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new1.61 KB

Something like that

We can't use *data* because \Drupal\Core\Config\Entity\DraggableListBuilder::buildForm() using label value as string

Status: Needs review » Needs work

The last submitted patch, 10: 1891746-10.patch, failed testing.

andypost’s picture

Status: Needs work » Needs review

looks unrelated fail

andypost’s picture

Any reviews?

joachim’s picture

Status: Needs review » Reviewed & tested by the community

Yup, looks good to me.

xjm’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs usability review, +Needs screenshots
Related issues: +#1340500: Merge "list terms" page into "edit vocabulary" page

Hmm, I am not sure about this change. For one thing, we already changed it so that "list terms" is the default operation for the dropbutton (rather than edit) so the original problem statement in the summary is no longer applicable. For another, some users might expect the link to point to the vocab edit page, and others might expect the list terms page.

Nodes, taxonomy terms, etc. link to view the thing in the admin listing, but they are content entities. Vocabularies are configuration entities providing a bundle for a content entity type. The closest analog I can think of for vocabularies is the /admin/structure/types page for administering content types, and that does not link the name of the content type to anything.

The links to nodes and taxonomy terms also do not duplicate any dropbutton operation.

Let's add updated before-and-after screenshots and then get a usability review of the proposed change.

xjm’s picture

I also might recommend simply postponing this on a better overall design for the vocab pages (see #1340500-28: Merge "list terms" page into "edit vocabulary" page).

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

NikitaJain’s picture

Status: Needs review » Needs work
StatusFileSize
new32.94 KB

Tested the latest patch (1891746-10.patch) getting an error while applying the patch on 8.3.x-dev.
Screenshot attached.

oleksiy’s picture

Status: Needs work » Needs review
StatusFileSize
new1.77 KB

Reroll of the latest patch (1891746-10.patch)

Bojhan’s picture

Issue tags: -Needs usability review

I can review after screens.

pguillard’s picture

StatusFileSize
new12.42 KB

Still don't know what to decide according to #15 and #16.
Anyway I tested the patch, and if we pursue that way, this is RTBC.

Screenshot after

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

matthieuscarset’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Hi here,
I've tested the patch and it's RTBC.

Hope to see this in core soon.

I think this is a basic improvement and such a quick fix that will everybody's life easier with Taxonomy in Drupal :)

idebr’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs usability review

Let's do the usability review xjm requested in #15. Screenshot is available in #21

andypost’s picture

Issue tags: -Needs screenshots

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

abhijith s’s picture

Patch #19 failed in 9.2x.Needs reroll

Checking patch core/modules/taxonomy/src/Tests/VocabularyUiTest.php...
error: core/modules/taxonomy/src/Tests/VocabularyUiTest.php: No such file or directory
Checking patch core/modules/taxonomy/src/VocabularyListBuilder.php...
Hunk #1 succeeded at 150 (offset 86 lines).
abhijith s’s picture

StatusFileSize
new1.84 KB
new80.52 KB

Rerolled patch #19 .Please check and verify

Including screenshots after applying this patch
after

Status: Needs review » Needs work

The last submitted patch, 34: 1891746-34.patch, failed testing. View results

anmolgoyal74’s picture

Status: Needs work » Needs review
StatusFileSize
new1.76 KB
new1.24 KB

Fixed the failed test cases.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

vikashsoni’s picture

StatusFileSize
new15.57 KB

#36 patch applied successfully and looks good for me
Thanks for the patch
For ref sharing screenshot ....

ranjith_kumar_k_u’s picture

StatusFileSize
new1.59 KB
new1.64 KB

Re-rolled for 9.4.

Status: Needs review » Needs work

The last submitted patch, 40: 1891746-40.patch, failed testing. View results

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.