backdrop-contrib / paragraphs

Paragraphs module to control your content flow
https://backdropcms.org/project/paragraphs
GNU General Public License v2.0
5 stars 11 forks source link

Does not save paragraph is you don't add/edit content #141

Open stpaultim opened 2 years ago

stpaultim commented 2 years ago

This feature is a bug for me right now.

FEATURE:

If you create a paragraph but do not edit the content and then you save the page, the empty paragraph is not saved. In theory, this makes perfect sense.

BUG:

I created a paragraph with a Markup field. In the markup field, I include a HR. I want an option for site editors to use the paragraph to place a Horizontal Rule between two other paragraphs. I've styled the HR appropriately and used the Markup field, because the content of this paragraph should not be edited. The only task for the editor is to place the HR paragraph in the correct place, there is nothing for them to edit.

However, when I save the page, this new paragraph does not get saved. I assume, because I have not added or edited any content.


It seems to me that having a paragraph with fixed message or image that can't be edited would be a very useful use case. Is there a better way to do this, or is this a bug that we should fix.

laryn commented 2 years ago

@stpaultim I have not used the Markup field module. Is this meant to insert a HR on the author/node-edit form, or on the front end display?

stpaultim commented 2 years ago

@laryn For this use case, I wanted a way to put an HR between two paragraphs. My thought was to create a paragraph for that sole purpose. This would have put the HR on the front end display of the node, between two paragraphs.

I want the site editor to have this capacity. The Markup field should work for this purpose, except for the problem I mentioned. I'm totally open to the idea that there is a better way to accomplish the same thing, but I'm not sure what it is yet.