I have JGE content that looks something like:
{
"meta": {
"key1": "value", // etc...
},
"items": [
{
"id": 3,
"title": "My Great Content",
"blurb": "You should read this content"
}, {
"id": 4,
"title": "Another Good One",
"blurb": "You'll never guess what happens after you read this"
}
]
}
And I have a handlebars template that looks a bit like this:
{{#with content}}
{{#each items}}
<article class="blog-post-blurb" id="blog-{{id}}" data-pb-content-id="{{id}}">
<h1 data-pb-field="title" data-pb-field-type="text">{{title}}</h1>
<h2>{{blurb}}</h2>
</article>
{{/each}}
{{/with}}
The content-editable attributes for loops documented at the bottom of https://washingtonpost.atlassian.net/wiki/display/PFFED/Setting+up+content+editable+for+your+features do not seem to work on arrays that not the top-level array. Although the fields are editable in the UI, the values never get saved to localEdits.
This is mainly needed at the moment for purposes of demoing the content editable feature to clients, but is probably a common use case in general.
Possibly the same idea as this?
https://pagebuilder.ideas.aha.io/ideas/PB-I-18
Categories | Editor, Feature Configuration |
I need it... | Week |