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.
1. Set all filters at the same level rather than the old admin view.
2. Move the title search field to be the first-most.
Comment | File | Size | Author |
---|---|---|---|
#59 | 2001922-after_patch_mobile-58.png | 28.45 KB | Abhijith S |
#59 | 2001922-after_patch-58.png | 32.12 KB | Abhijith S |
#58 | After-patch.png | 31.05 KB | komalk |
#58 | Before-patch.png | 44.59 KB | komalk |
#58 | 2001922-58.patch | 5.11 KB | komalk |
Comments
Comment #0.0
irinaz CreditAttribution: irinaz commentedadding images and code for the view
Comment #1
tim.plunkettThe default view has been added, we can customize it now!
Comment #2
irinaz CreditAttribution: irinaz commentedFilters for the title, author and content type are added
Comment #3
irinaz CreditAttribution: irinaz commentedComment #4
dawehnerI guess we really need some css for the exposed form?
Comment #5
tim.plunkettYeah, we probably needed it anyway, but this just really really shows that we need some.
Comment #6
dawehnerAT least in d7 there has be some for that ... was that defractored?
Comment #7
dawehnerBut i guess adding special css should be done in a follow up. Let's make this patch more simple and don't chance items per page etc.
Comment #8
klonosIn #2020167: Add a name and email search field to the admin/people view (that was previously titled "Improve admin/people view") we decided to:
1. not add a "items per page" filter (we left it for #2020449: Provide a generic/reusable widget for configuring the number of displayed items per page in admin views listings.)
2. add a unified name/e-mail search field
3. change the status filter from 'yes'/'no' to 'active'/'blocked' (actually a follow-up: #2024893: Change status filter on admin/people to 'active'/'blocked')
For consistency sake, we should:
1. leave the "items per page" filter to #2020449: Provide a generic/reusable widget for configuring the number of displayed items per page in admin views listings.
2. add a unified title/body search field
3. was done in #2022127: Change status filter on admin/content to 'published'/'unpublished'
I specifically would like to see #2 implemented (we only search title currently).
Comment #9
tim.plunkettHere's a unified search field.
Comment #10
klonosJust gave it a quick spin at simplytest.me and it works. Thanx!
Does anybody else think that we should throw an "Author" autocomplete field and perhaps a date/date-range one too? I mean, since date.module is in core now and all.
Also, should we list the filter widgets according to the order of their respective columns in the results table? Does that make sense?
Comment #11
tim.plunkettUntil someone works on #1838242: Provide Views integration for datetime field, the Views/Datetime integration is all but useless.
Author would be a good idea.
I don't care about the order.
We also need to expand the existing test coverage for this.
Comment #12
dawehnerThis adds potentially performance problems as it requires to search in a textfield.
Comment #13
irinaz CreditAttribution: irinaz commenteddo you mean additional field "Author" - there is one included
Comment #14
dawehnerI care more about the body field.
Comment #15
irinaz CreditAttribution: irinaz commentedViews allow filtering in title field, but body field requires search and is much more "expensive" operation. Usually, if a user is looking for something in a body they will use full search option rather than using admin/content page.
Comment #16
saltednutMarking as 'needs work' since tests are still necessary
Comment #16.0
saltednuttext edits
Comment #17
klonosComment #18
klonos...moving #2022127: Change status filter on admin/content to 'published'/'unpublished' from the related issues to the children/follow-up issues (could not do it directly from here because of #2130889: Allow adding child/follow-up issues directly from the parent issue and converting related issues to children.).
Comment #19
dawehner9: node-2001922-9.patch queued for re-testing.
Comment #21
xjm(Merging "node system" and "node.module" components for 8.x; disregard.)
Comment #22
dawehnerWe need an issue summary which also describes what this actually is about.
Comment #23
dawehner.
Comment #24
irinaz CreditAttribution: irinaz commentedComment #25
irinaz CreditAttribution: irinaz commented@ dawehner
I have update description to "Change admin/content view to include node title as one of the filters and changing labels on filters to be more clear to end user . Should I add more details?
Comment #26
xjmSorry for the noise. Looks like the component is stored as a string value so we'll need to update these nodes programmatically before we rename the component.
Comment #27
webchickI believe #1279652: Add title search feature on the node listing admin page going in renders this issue moot. Sorry, I didn't see it. :( In defense, that one is a bit older.
Comment #28
klonos...not entirely moot. See updated issue summary.
Comment #29
irinaz CreditAttribution: irinaz commentedAbility to filter by node title is CRITICAL feature for content managers. Is there a way to add this feature?
Comment #30
klonos@irinaz: please see my reply in #1279652-37: Add title search feature on the node listing admin page. The feature to search by title was added. What we are asking to be done here is to rearrange the fields in the form so that the title search field comes first and that all widgets and buttons are horizontally aligned instead of stacked vertically.
Comment #31
aaronott CreditAttribution: aaronott commentedHere is an attempt at aligning these. I've moved the title to be the first field and changed the css for the views.exposed_form to float the action buttons to the end of the fields.
Comment #32
aaronott CreditAttribution: aaronott commentedMeant to mark this as needs review.
Comment #33
klonosWorks as expected. Updated the issue summary with before/after screenshot.
Comment #34
XanoComment #35
LewisNymanWe can improve the alignment of the button and the form items but using the ‘small’ button type.
I've also tweaked the rtl styling and wrapped the whole thing in a media query as things start to look pretty messy around 490px. Arguably we could set this higher as we start to get orphans around 750px;
Comment #36
LewisNymanComment #38
klonos...yeah, sorry I tent to forget that we are responsive and only test on wide desktop screens. I'll try to remember to also test on mobile.
Comment #39
LewisNyman36: admin_content_view-2001922-35.patch queued for re-testing.
Comment #40
aspilicious CreditAttribution: aspilicious commentedWhen selecting a filter a reset button appears, that button is bigger than the filter one :). Not good.
Comment #41
LewisNymanAh good point.
Comment #42
LewisNymanComment #43
idebr CreditAttribution: idebr commentedThe .views-exposed-form class has been abstracted into .form--inline in #2333719: Abstract Views Exposed Form styling out into a reusable class
Comment #44
sudheeshps CreditAttribution: sudheeshps commentedComment #45
tengokuHey.. this patch not longer applies to the current 8.0.x HEAD...
I'm uploading this patch that tries to do the mentioned thing.. but
filenames doesn't exists now so I found the moved files and applied the changes there.
css classes not exists now. So the button stays on a new line like in the before screenshot.
I don't think that making all the actions of the views exposed forms should have that css.. and stay the way it is, because maybe other modules add actions to this view and all the buttons in the same row as the exposed filters could not be nice...
So, please review and if not then return it back to needs review
Cheers!
Comment #46
LewisNymanI updated the styling of form--inline.
Comment #47
idebr CreditAttribution: idebr commentedPlacing the title to the front works a lot better, thanks!
I'm not so sure about the small submit button however. Especially when the view has bulk operations, the submit button feels a bit too small compared to the bulk operation action. Let's at the least have a usability check before we implement this.
Either way, the form--actions margin should not apply for small viewports as it pushed the form action too far away from the form elements:
Comment #48
irinaz CreditAttribution: irinaz commentedButtons - Filtering/searching content on this page[button FILTER] is more common operation than making changes [APPLY], but with the current design it seems that primary operation is Apply. I have seen many times how users make selection with filters and click button Apply, and do not see any changes. Better scenario is to have colored large (green) button Filter, and leave Apply as is. Now button Filter is hard to find.
Comment #49
irinaz CreditAttribution: irinaz commentedFields and filters - it is better when order of filters is consistent with order of fields in the table.
- Moving Type filter in front of published filter would make more sense to me.
- Author filter is quite useful - can it be added?
- How important is Language filter? How many sites are multilingual?
Comment #58
komalk CreditAttribution: komalk at Srijan | A Material+ Company for Drupal India Association commentedAttached screenshot for the reference, review the patch.
Comment #59
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #58 .Now the filters are in same level
Attaching screenshots
Mobile view:
RTBC
Comment #61
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commentedUnable to apply patch in drupal-9.3.x-dev Showing error
Needs to Re-roll
Comment #64
smustgrave CreditAttribution: smustgrave at Mobomo commentedNot really sure what's trying to be accomplished here? If it's moving the filter button to be inline I think that should be reflected in the title. And this ticket should be moved to whatever theme it needs to be but this does not occur in the claro theme which is to be the new default.
Moving to PNMI for summary update.
Comment #65
irinaz CreditAttribution: irinaz as a volunteer and at Fibonacci Web Studio commentedThis is a very old issue, opened in 2013. I am changing it to closed, it is not relevant anymore
Comment #66
irinaz CreditAttribution: irinaz as a volunteer and at Fibonacci Web Studio commentedFilters work as designed in D9.