I have a scenario where I need to display a list of paragraphs, which I know views supports.
But I need to group them by Bundle name, which is working, except for the title.
Here are the steps I took to repoduce:
1. Create 2 separate bundles, in this case they are called Material Safety Data Sheet (MSDS) (machine name: msds_sheet) and Special Local Need (SLN) Label (machine name: sln_label)

2. Create a view to display Pragraph Items with fields, and add the fields needed as well as the field "Paragraphs item: Bundle"


3. Once saved, you can see the output of the bundle type is incorrect, it should say Material Safety Data Sheet (MSDS) but instead it says Paragraphs bundle msds_sheet


Am I doing something wrong? There is an option to "Output machine name" but this only shows the machine name (e.g msds_sheet) and doesn't do what I expect with it turned off.
Please help!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | paragraphs-bundle-label-entity-info-2592021-4.patch | 631 bytes | jeroen.b |
| paragraph-views-output.jpg | 61.26 KB | capfive | |
| paragraph-views-preview.jpg | 87.53 KB | capfive | |
| paragraph-views-group.jpg | 134.95 KB | capfive | |
| paragraph-views.jpg | 70.45 KB | capfive |
Comments
Comment #2
capfive commentedAnyone able to help with this?
Comment #3
capfive commentedI took a look at this myself, and I am not in anyway a coder but these are the steps I took to fix the issue.
I went to this page

and noticed that the bundle name is displayed correctly, so I found the code that produces this name
Particularly the
I changed
<?php 'label' => t('Paragraphs bundle @bundle', array('@bundle' => $bundle->bundle)), ?>to<?php 'label' => t('@bundle', array('@bundle' => $bundle->name)), ?>and it is now fixedThis is the correct code that has now fixed this problem for me
I don't know how to create a diff patch :( if someone would like to assist (if what I did was correct) then that would be great :)
Comment #4
jeroen.b commentedCould you try this patch?
Comment #5
rossington350 commentedI can confirm this fixed the issue for me.
Comment #6
capfive commentedsorry didnt even see the patch comment!
I can confirm it has fixed for me too :) thanks for the help!
Comment #7
polThanks, this has fixed the issue too. RTBC+1
Comment #9
jeroen.b commentedThanks! Pushed!