Make usability better for "Link display" setting

Created on 11 September 2013, over 11 years ago
Updated 1 October 2024, 4 months ago

Instructions to reproduce the issue

  1. Install fresh D8 (standard profile)
  2. Go to /admin/structure/views/add, to add new view
    1. Name the view to whatever you want
    2. Select "Create a block"
    3. Click "Save and edit"
    4. Under "Pager" choose link after "More link:". By default it's "no".
    5. Select "Create more link"
    6. Click "Apply"
    7. Under "Pager" choose link after "Link display:". By default it's "none".
    8. Select "Custom URL" radio button
    9. Now the "Custom URL" cannot be unselected

What should be expected


After setting the more link to "yes" it would automatically open a form to set the link's destination. This form should have "Custom URL" selected by default if there's no other displays available. It should also instruct the user to create a new display to get more options here. This way we would get rid of the "none" option and this would make it impossible to forget to give some destination to the more link. If possible the option "Link display" could be hidden if the "More link" is set to "no".

How to fix it


Code procedures

  1. Hide "Link display" setting if "More link" is set to "no".
  2. Show the "Link display" setting if "More link" is set to "yes".
  3. Open the "Link display" form after selecting "yes" for "More link". If there's no displays select "Custom URL" by default. If there's displays available automatically select the first display on the list.

Documentation

Add better descriptions on the "Link display" form.

Related Issues

https://drupal.org/node/2087139

๐Ÿ› Bug report
Status

Closed: outdated

Version

11.0 ๐Ÿ”ฅ

Component

views_ui.module

Created by

๐Ÿ‡ซ๐Ÿ‡ฎFinland jiv_e

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone

    I tested this on 11,x, Umami install, and was not able to reproduce this error. I followed the steps given in the Issue Summary.

    If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue โ†’ (starting from "Install Drupal core").

    Thanks!

  • Status changed to Active about 17 hours ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands johnv

    "It should also instruct the user to create a new display to get more options here. "

    I was going through the "More link" issues, and I could not reproduce, on my simple view with only 1 page display.
    Then, somewhere I was encouraged to add a Block display to the View. Now the "more link" appears on both the Block display and the Page display, but the "Link display" option is only showing on the Block display. I am confused.

    Now I also understand why people state (on issue ...) that the unconfigurable 'More link' is useless on Page displays, since it point to the display itself.
    (Alphabeticaly ordening the 'More link' รญssues.)

Production build 0.71.5 2024