Needs work
Project:
Views Bootstrap
Version:
5.4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2020 at 16:50 UTC
Updated:
10 Apr 2025 at 13:57 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
koffer commentedComment #3
devkinetic commentedThis is a great feature request. I've implemented essentially the same type of logic for a paragraph type.
Just a note, you can do basically the same thing as this using grid and a view mode that renders it's output as a card.
Comment #4
shelaneComment #5
j_s commentedIt'd be great to remove the 'required' status on 'content' and 'image' fields. I have content that have no images that need to be displayed in a card deck.
It would also be nice to include a "Number of cards per views card deck" option so that I can have many records in a card format split into multiple card decks instead of it displaying all of the cards in one wide card deck.
Comment #6
ravi kant commentedWe really need options to add bootstrap classes like - col-lg-4 and flex-wrap etc..
Comment #7
tirupati_singh commentedComment #8
tirupati_singh commentedSince the
fieldsto add classes tocard groupandcardalong with the field tochoose number of cards in a rowhas already been implemented in5.5.xversion for the module hence, I'm changing the version for the issue to 5.5.x-dev.Comment #10
tirupati_singh commentedHi, I've added a new list value
'None'in the select list for Cards component. Now users will have the option to use Image or Content field based on their requirements. I've attached the before and after fixes screenshots for reference. However user will have design the cards as per their requirement because Cards have no fixed width to start, so they’ll naturally fill the full width of its parent element. There is a style option to add custom classes to the wrapper div and cards so that you can add additional styling to suit your needs.Thanks!
Comment #11
shelaneThe 5.3.x, 5.4.x, and 5.5.x branches support different versions of Bootstrap. This issue was rightly assigned to the 5.4.x branch because there is no content option in that version. The changes proposed may be valid for 5.5.x and additionally 5.4.x, but a separate issue should be made for it so that work for the 5.4.x branch can continue to be tracked.
Comment #12
tirupati_singh commentedComment #15
tirupati_singh commentedHi @shelane, I've added a new option 'None' in the select list value for the image and content fields. I've only implemented the feature request mentioned in the issue summary. Will the issue mentioned by @joshuasosa in the comment #5 also be implemented as the option to add number of cards, classes have already been implemented in 5.5.x version of the module? Will the same feature need to be implemented in 5.4.x version of the module? I've attached the before and after screenshots for reference. Please review the changes.
Comment #16
shelaneComment #17
tirupati_singh commentedComment #18
tirupati_singh commentedHi @shelane, I've reviewed the latest changes and a new field has been provided in the view for the cards component. While choosing the
Select by fieldsunder Display configuration all the fields become required, and on selecting theNonegetting error "Please select an item in the list. This issue is due to the field marked as required. Due to this issue, it is not possible to leave any field empty the user will have to render all the card components like body, title and image. I think when theNoneoption is being provided then fields should not be marked as required.Comment #19
tirupati_singh commentedHi @shelane, could you please provide an update on the draft merge request MR !31 and let me know if there’s anything needed to move it forward?