Skip to content

Ability to create collections from another collection and list them on the Home page #438

Answered by fgatti675
kmatsuleva asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kmatsuleva
I have tried implementing this on my side and realised there were a couple of small pieces missing.
You can now access the datasource in the EntityCollectionBuilder, that will allow you to read data from Firestore upon creation of the CMS. I have also added a function that allows you to refresh the navigation data on demand.
I am writing an article on how to put all this together, but in the meantime, you can use this code as a template.
Remember to update to the latest 2.0.0-alpha.47 version!

import React from "react";
import {
    buildCollection,
    EntityCollectionsBuilder,
    FirebaseCMSApp
} from "@camberi/firecms";

import "typeface-rubik";
import "@fontsource/ibm-…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kmatsuleva
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants