Storage or CMS support
November 8, 2019 at 8:27amStorage or CMS support
November 8, 2019 at 8:27amHello, one quick question that pops to mind is what would be the best way to use Divjoy with a CMS service (having parts of the code like the comments or a news section change with changes over a storage element).
This seems not integrated? Shouldn't be too difficult. Just asking in case there's an obvious simple answer
November 10, 2019 at 12:04am
Hey Raimon, it should be fairly straightforward, although depends a bit on your React experience. Most headless CMS like contentful.com have a React library that enables you to fetch content via their API. You'd fetch the content you need and pass it into the component's props rather than have that data hardcoded. If you give me a bit more info on your stack I could probably help out more, specifically, are you using Create React App or Next.js? And which CMS do you plan to use?
This is actually something I'd like to help out with a lot more in Divjoy. Potentially we could add a CMS integration option and then when you export your code we'd automatically insert CMS API queries and alter any component props that are strings (like a title, description, image url, etc) to instead reference that query data. Still requires some thought and planning on how to do this in an automated fashion, but it's on the todo list.
August 17, 2020 at 4:31am