Content not written into .md file #87
-
|
Hey, when I update an entry I get the success message, but there is no new content written to the content file. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
|
What does your blueprint look like? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Can you provide your full template (including the |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
I'm getting an error whenever I try to submit the form. Is there anything in your log file (in |
Beta Was this translation helpful? Give feedback.
-
|
Can you try updating to v4.5.1 and let me know if it helps? Also, when you update Replicator fields, you'll need to create inputs for each replicator set's ID, along with any other fields on the sets, as it'll override the whole field, instead of merging w/ existing data. Simplified example from your template: {{ category }}
<h3>{{ name }}</h3>
{{ _category_index = index }}
+ <input name="category[{{_category_index}}][id]" type="hidden" value="{{ id }}">
+ <input name="category[{{_category_index}}][name]" type="hidden" value="{{ name }}">
{{ checklist }}
+ <input name="category[{{_category_index}}][checklist][{{index}}][id]" type="hidden" value="{{ id }}">
<input name="category[{{_category_index}}][checklist][{{index}}][hl]" type="text" placeholder="Motiv" class="" value="{{ hl }}">
<input name="category[{{_category_index}}][checklist][{{index}}][section]" type="text" placeholder="Bereich" class="" value="{{ section }}">
<label class="checkbox_label !m-0">
<input class="!m-0" type="checkbox" name="category[{{_category_index}}][checklist][{{index}}][is_done]" value="{{ is_done ?= 'true' }}" {{ if is_done }}checked{{ /if }}>
<span class="checkbox !scale-[1] !opacity-100 bg-sec-100"></span>
</label>
<textarea name="category[{{_category_index}}][checklist][{{index}}][description]" class="">{{ description }}</textarea>
{{ /checklist }}
{{ /category }} |
Beta Was this translation helpful? Give feedback.
-
|
After the update and your changes all works perfectlly. Thanks Duncan for your help! |
Beta Was this translation helpful? Give feedback.
Can you try updating to v4.5.1 and let me know if it helps?
Also, when you update Replicator fields, you'll need to create inputs for each replicator set's ID, along with any other fields on the sets, as it'll override the whole field, instead of merging w/ existing data.
Simplified example from your template:
{{ category }} <h3>{{ name }}</h3> {{ _category_index = index }} + <input name="category[{{_category_index}}][id]" type="hidden" value="{{ id }}"> + <input name="category[{{_category_index}}][name]" type="hidden" value="{{ name }}"> {{ checklist }} + <input name="category[{{_category_index}}][checklist][{{index}}][id]" type="hidden" value="{{ id }}"> …