Active
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2020 at 10:26 UTC
Updated:
26 Apr 2020 at 16:30 UTC
Jump to comment: Most recent
Hello,
When creating a new filter for a views page we need to filter by author. We have to choose some authors, about just 10. We use their nickname so it is not so long. But when we try to add the authors in the field "users names" inside the filter "content: written by" we found that there few characters available, only 128 characters, so we cannot add so many writters as we need. Is it possible to enlarge this field so we can increase the number of authors available??
We are using Drupal 8.8.3, testing in Drupal 8.8.5 also and PHP 7.3.6
Thanks a lot,
Regards, Ricardo
Comments
Comment #2
rhsantos commentedComment #3
avpadernoComment #4
lendudeUpdated the title a bit to make it a bit clearer what the problem is. I'm not sure if I would qualify this as a bug. Even if we up the size it might still not be enough if you have a LOT of user names you want to enter. So this is just about finding a sane default.
So, what should it default to? And if we change it, should we only so so for name fields? of should we update the default value field to be bigger? Other filters could run into this too...and if we change it in the backend, should we also update it for the exposed filters?
Comment #5
rhsantos commentedHi Lendude,
At first I thought it was a bug because when I choose an user, for example, rhsantos, the system adds the id number: rhsantos (89). So I thought this number implies a lot of extra characters per user. As a feature request I also don´t see why it should be a number of characters, because maybe, users can be one character, a,b,c,d, or really long nicknames: jmenende. Why should it be limited by characters? Maybe it should be limited to a number of users, something clear. like, max users: 10. This could be more adequate. In case you need more users there should be a warning to use roles or groups in order to organize the exposed filter. Even more, if there is a exposed filter maybe it should be a list, not a text field?
Another question that I have not tested, whether there is a limit like this in other fields. For example, using workflows states seems to expose all states.
Anyway, thanks again for your attention.
Regards, Ricardo