I am currently implementing a custom slideshow entity in a custom module which leverages the Paragraphs module. It works great! However, the display is a little confusing in a few areas. I thought maybe it was just because of my use case, but then thought that it really is something that should be addressed in Paragraphs directly.
When an admin creates a paragraph field type on a bundle, they have the option to select which Paragraph type(s) are available to the user for that particular field. It is possible (as is my case) that the admin chooses to only have one Paragraph type available to the user. When this is the case then the wording of certain text should be altered to be more meaningful to the user.
I have attached screenshots to hopefully convey things more clearly.
In screenshot #1 when there are no Slides (my only allowed paragraph type available) added yet the message says "No slides added yet. Select a slide type and press a button below to add one." Since there is only one "slide type" that message doesn't really make sense. Instead it should read "No slides added yet. Press the button below to add one."
After clicking "Add Slide" (screenshot #2) there is an indicator of what type of paragraph the table row is. Since there is only one type allowed it doesn't make sense to display this to the user. This one isn't as big of a deal as the first one, but isn't that big of a deal to check for and makes the user experience better IMO.
I will submit a patch for implementing these changes soon.
Comments
Comment #2
bocaj commentedComment #3
bocaj commentedPatch attached.
Comment #4
bocaj commentedSame patch for current stable release 7.x-1.0-rc4
Comment #5
bocaj commentedPatch for 7.x-1.0-rc5.
Comment #7
james.williamsRelated issues:
#2572277: "Select a Paragraph type" when there is nothing to select. has already been committed, which ensures the text shown when no paragraphs have yet been added is simpler.
#2976842: Make paragraph_bundle_title display configurable is a slightly different approach at hiding the paragraph type title, as a per-paragraph-type setting. I actually prefer the approach used in this ticket for hiding it, as I believe the main case for hiding it is due to only one paragraph-type being permitted in a field. (And that paragraph type might be usable in other fields alongside other paragraph types, in which case I would not want to hide it there, but I still would where it is the only type allowed.)
Comment #8
bluegeek9 commentedUnfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.