Closed (fixed)
Project:
Paragraphs
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2013 at 01:49 UTC
Updated:
20 May 2014 at 19:10 UTC
Jump to comment: Most recent
Comments
Comment #1
frans commentedAnd this is a bug?
Can you give reproducible steps... it cannot be tested without those.
Comment #2
jeroen.b commentedComment #3
loparr commentedComment #4
loparr commentedI changed status to feature request if you like. Please take look here https://drupal.org/comment/7412696#comment-7412696
Comment #5
jeroen.b commentedI think the only solution to this is to display an "Edit" button before actually showing the fields, like Inline Entity Form. Is this something you would like? I might make this an instance setting when people actually want it. The idea of paragraphs is also that you can see very quickly what is in your body. As Paragraphs is meant as a re-invented body-field.
Comment #6
loparr commentedHi, displayying edit button before printing all possible forms seems to me as an good idea.
Comment #7
agoradesign commented+1 for the edit button!
Comment #8
jeroen.b commentedAdded this in commit http://drupalcode.org/project/paragraphs.git/commit/4247ecd
This adds an option on your field instance "Default edit mode", 2 options: "Open" and "Closed".
Open is the old behavior (all fields showed on the initial form), and the default.
Closed is the suggested mode, the fields aren't shown until you press the "Edit" button.
You can test it by checking out the tag 7.x-1.x-dev-editmode (or 7.x-1.x-dev from the paragraphs project page, not sure if it's updated yet), please do so! If it's OK I will release beta3 with this functionality.
Comment #9
jeroen.b commentedComment #11
nicolas bouteille commentedHi,
I just tested the feature.
I installed dev version over beta2 already installed.
I tested this on a content type already configured with a field of type Paragraph and one simple paragraph bundle (text block).
First of all, there is one thing very useful missing from Inline Entity Reference : an ID string (administrative title) to identify each item so that reordering of multiple items of one same bundle type is possible.
Now, no errors at first site but when I clicked on the edit button, I got an AJAX alert error. The message is in French but mainly it says that
an AJAX error occured
Status code HTTP 500
Path: /fr/paragraphs/edit/ajax (maybe your module does not handle language prefixes!?)
Status text : service unavailable
ResponseText : EntityMalformedException : missing bundle property on entity of type node in entity_extract_ids() line 7721 includes/common.inc
Comment #12
jeroen.b commentedHi Nicolas,
That issue is not related to this feature, or to not handling language prefixes (that's something in core).
I'll try the upgrade from beta2 to current dev soon.
I agree with you on administrative title, although it might be very annoying if you have to come up with a administrative title every time you create a paragraph. Would the Entity ID be enough (not very pretty though)?
Comment #13
nicolas bouteille commentedThen administrative title could be optional ;)
Comment #14
jeroen.b commented