firecms icon indicating copy to clipboard operation
firecms copied to clipboard

Issue with sideEntityController.open() not overwriting schema

Open brianpham258 opened this issue 3 years ago • 4 comments

Hi, I'm setting up a custom side entity view but I couldn't make firecms display the new schema I pass in. "@camberi/firecms": "^1.0.0"

image

I set overrideSchemaRegistry = true and passed in the new schema that I want to show, which is articleContentSchema, but instead the side drawer still shown the schema that was defined for the path '/library_items'.

I followed the example code in the file ExampleCMSView.tsx from firecms code base, but I couldn't find where you guys define the path "/products-test" https://firecms.co/docs/custom_top_level_views/

image

Could someone show me where did I do wrong or how the path "/product-test" was defined?

brianpham258 avatar Jun 01 '22 15:06 brianpham258

Hi @brianpham258 So that is the intended way to use it. products-test is not defined anywhere else in the example, it just points to the database path. overrideSchemaRegistry should not be necessary. I understand you have defined a collection with the same path, which is where it's fetching the schema from. If that's the case it seems to be a bug in the CMS

fgatti675 avatar Jun 14 '22 18:06 fgatti675

If it helps, this issue is already solved in v2.0.0 which is currently in alpha in case you wanna try it out

fgatti675 avatar Jun 14 '22 18:06 fgatti675

Thank you @fgatti675 🙏, let me try the v2

brianpham258 avatar Jun 14 '22 19:06 brianpham258

Hi @brianpham258 did it help?

fgatti675 avatar Aug 03 '22 14:08 fgatti675