Hi all,
Have problem accessing the document’s nested array (object) fields using babrahams:editable-text package.
Let’s say my document looks like that:
{
_id: xxx
name: 'Tom'
cars : {
{ make : 'volvo',
wheels: {
left: 'ok',
right:'broken'}
},
{ make : 'bmw',
wheels: {
left: 'flat',
right:'ok'}
}
}
Have no problems editing the first level fields like ‘name’, but have a problem within second level template.
The
{{make}}
is working there, but:
{{> editableText context=WhatstheContextHere?? collection="cars" field="make"}}
is not.
Nor have any idea what is the context field, especially as it seems the package expects ‘flat’ documents.
Is there any way to access the second/third level array elements using given package??