Problem/Motivation

On a clients' site I want to create a view all link in a view along with the pagination.
By default, there is a checkbox to do this in the pagination settings form. However,
after setting this up, the link does not render on the view as you think it would.

I am on the latest version of drupal 8. I also spun up a separate drupal 8 site running 8.9.11 to test this as well and
the link still did not render on the view as it should.
I don't see anything in the mini pager templates where that may be expected to render.
I tested this with both a mini pager and a full pager.
My theme is a subtheme of classy and I also tried it on Bartik.
I tried this both with and without AJAX enabled in the view.
I tried it as a page view and a block view.
I am on Google Chrome on a macbook pro.

Steps to reproduce

Create a view with a mini pager. Click the option to display a view all link and save.
You can see in the preview and the actual view that it is not there.

Proposed resolution

Allow the view all link functionality to be rendered on the front-end.
Add to the documentation if it does work but has to be enabled a certain way.

Comments

redbrickone created an issue. See original summary.

shailja179’s picture

Status: Active » Needs work
shailja179’s picture

Status: Needs work » Needs review

Hi redbrickone,

It will display 'View all' if you enables Allow user to control the number of items displayed in this view as well. Then View All will be in dropdown with other options of number of items .

immoreel’s picture

This used to work in Drupal 7 though...

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

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

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

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

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should 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.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should 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.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

There was no patch to review

But can confirm this is an issue on D10
The all option does not appear when checked
When "Allow user to select number" is checked then the "All" option appears

But when used it throws an error

TypeError: Unsupported operand types: int * string in Drupal\views\Plugin\views\pager\SqlBase->query() (line 279 of core/modules/views/src/Plugin/views/pager/SqlBase.php).

Version: 9.5.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. 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.