Closed VisetDev closed 1 week ago
Hi @VisetDev, if you declared a subcollection with path visets
under the home
collection, then it's a bug on FireCMS. We will look into it and let you know
It's actually path: "home/collections/visets"
where the reference points to (collection/document/collection) ... but you got the point. thx.
if I create it straight from firecms (app.firecms.co) the error still exists:
it won't parse other than / collections:
`import { EntityCollection } from "firecms";
const ReferenceTestCollection:EntityCollection = {
id: 'reference_test',
name: 'reference test',
singularName: 'reference test',
path: 'reference_test',
editable: true,
icon: 'local_library',
group: '',
customId: false,
properties: {
time: {
dataType: 'date',
mode: 'date_time',
name: 'time',
propertyConfig: 'date_time',
},
elements: {
name: 'elements',
propertyConfig: 'reference',
path: 'visets',
dataType: 'reference',
},
collection: {
dataType: 'reference',
name: 'collection',
propertyConfig: 'reference',
path: '/home/collections/visets',
},
},
subcollections: [],
}`
Hi, I wasn't able to reproduce your issue.
Make sure in your top level navigation you have a collection with path home
, and that one needs to have a subcollection with path visets
.
Closing this for now
When trying to list a "type:reference" property under a subcollection, ErrorView arise:
Entities under subcollections stores references to documents under '/home/collections/visets' thus view configuration is as follow:
onFetch(entity) log:
the same structure works fine if referenced collection is under root: '/visets' (for instance)
Collection '/home/collections/visets' is already created in firecms and works just fine.
My asumptions is somehow firecms reference path is not parsing paths in the form : "/collection/document/collection/" (deep further root)