Hey guys, I stumbled over this post on Medium on my research on using a CMS to change content in files exported with hype:
Though I have now exactly done what the article tells me, and after checking five times, I cannot make it work. Is there any reason for you guys why this tutorial should not be working as expected?
It'd be useful to know if there was something more specific about it not working - if there was a step in the process that failed, an error message, content does not show up, etc.
That said I've never used Contentful so perhaps the author of the article would have more insight!
console log the data you’re trying to receive.
if it does not log the data, you’ve got a problem in connecting to the database.
if there is the expected data you’ve made a mistake while trying to fill an element …
Along with what @h_classen mentioned, you may want to open the web developer console and inspect the DOM structure. It could be that the Hype document is in fact there, but for some reason not visible. A common cause we found with WordPress embeds was that Hype documents were using a Flexible Layout with the height setting checked to 100%, but this would collapse to 0 pixels since there was no minimum height on the div. The solution for that is to generally just not make the height flexible.