Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
There aren't options to override page with other parameter on links of Format and Pager section in View UI.
For example: I create a view with Grid format. Now, I want to create 2 pages in this view:
- Page 1: Show 4 columns
- Page 2: Show 3 columns
It is missing option For: All pages and This page (override)
This function is available in Drupal 7
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#14 | Screenshot 2020-06-12 15.04.39.png | 34.22 KB | pameeela |
#14 | Screenshot 2020-06-12 15.04.29.png | 34.21 KB | pameeela |
#14 | Screenshot 2020-06-12 15.03.46.png | 37.87 KB | pameeela |
#6 | pic2.png | 165.31 KB | lehoa85 |
#6 | pic1.png | 192.53 KB | lehoa85 |
Comments
Comment #2
lehoa85 CreditAttribution: lehoa85 commentedComment #3
lehoa85 CreditAttribution: lehoa85 commentedAny update? I think it's very important function of view.
Comment #4
cilefen CreditAttribution: cilefen commentedI cannot reproduce the bug you described. I created a view with two grid pages and I was able to override the settings for each page. I am tagging this issue "Needs issue summary update" and "Needs steps to reproduce".
There seems to be something missing in your report about what is missing in the Views UI.
Comment #5
cilefen CreditAttribution: cilefen commentedComment #6
lehoa85 CreditAttribution: lehoa85 commentedComment #7
lehoa85 CreditAttribution: lehoa85 commentedHi @cilefen,
I have attached 2 files:
Pic1: Click on Settings link in Format => No option for override
Pic2: Click on Content in Show link => Display option for override
Thank you.
Comment #8
lehoa85 CreditAttribution: lehoa85 commentedHello @cilefen,
Have you checked my attached file about problem above? I think it is a important function in view which ready in Drupal 7 but not drupal 8.0.3
Again, I will explain more detail about that:
I would like to create create a view contain 2 pages Grid format which one show 3 columns and one shows 4 columns. My steps are:
1. Create a view page Grid format show 3 columns (ex: path is page1)
2. Add new page from this view and change to 4 columns in grid settings. (ex: path is page2)
When I have done step 2, page1 will be overriden by settings of page2. It mean, page1 now show 4 columns.
P/S: I don't want to create 2 views for this purpose.
Thank you.
Comment #9
Devestaaron CreditAttribution: Devestaaron commentedI'm having this same issue. I want to have two view blocks with different pager options. It was an option in Drupal 7, but not in 8, so I'll need to create a second view entirely instead of just adding a block.
This happens on any drupal 8 site for me, out of the box.
Comment #10
ABaier CreditAttribution: ABaier commentedI noticed the exact same behavior today. I created a view page with a four column grid and pager offset 2 and added a corresponding block with two columns to show the first two teasers of this list. From D7 I was so used to this, that it took me a while to see that the format options were set globally. This feature should really come back to D8.
Comment #11
dkre CreditAttribution: dkre commentedI believe this is a UI regression / change in behaviour from D7 Views to D8 Views?
The view override options are set at the parent now, meaning that the settings for the format and pager will apply based on the form parent.
Eg. FORMAT:
Unformatted List > For: 'All Displays (except overridden)' | Settings > This will also apply to all
This is also true for format > show options.
Coming from D7 we expect to see the override options dropdown for settings/items etc as we did with D7 Views. This does also present a UI issue for new users also because you can be overriding all displays without any indication of why.
I recommend adding a simple bit of helper text to let users know how their setting change will applied. Ideally this should be a replication of the "Apply (All displays/This display)" submit button behaviour currently used on forms where the override dropdown is available.
Alteratively an addition to the form item label to indicate there is an override in place (rather than just italics). This would indicate that it is both items and presents a differentiated method for D7 website builders.
FORMAT
Format (Overridden): Unformatted List | Settings
Comment #12
Robin van Emden CreditAttribution: Robin van Emden commentedI can confirm this issue. I don't know whether this has been the result of a design choice, or of an accidental regression. Either way, I'd much prefer to restore the option to override pager and format settings on a per-display basis. This would not just re-enable a very useful feature - it would also restore UI consistency.
Comment #14
pameeela CreditAttribution: pameeela commentedThanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.
As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)".
I was able to create a view with two pages, each using the Grid format, with different settings. The way to do this is to select 'This block (override)' for the format and then you can apply different settings (the settings will only apply to this display if the override option is selected for the format):
Page 1 settings:
Page 2 settings:
As a result, I'm marking this "Closed (works as designed)".
If anyone can provide complete steps to reproduce the issue (starting from "Install Drupal core"), document those steps in the issue summary and set the issue status back to "Active".
Thanks!