You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2021. It is now read-only.
I just spent a few hours debugging why the model entries in EmberJS weren't showing up.
In the end I discovered that it has to do with how you name your model vs. how you name your content type ID in contentful.
E.g. with file name of model: faq-entry.js and content type ID of faqEntry, the model is never filled with entries. I had to create a new content type with the id faq-entry for it to work. This is quite confusing, since you can actually specifiy exceptions to the content type ID in the URL in the adapter but this is only used for making the request and not serializing the request.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I just spent a few hours debugging why the model entries in EmberJS weren't showing up.
In the end I discovered that it has to do with how you name your model vs. how you name your content type ID in contentful.
E.g. with file name of model:
faq-entry.js
and content type ID offaqEntry
, the model is never filled with entries. I had to create a new content type with the idfaq-entry
for it to work. This is quite confusing, since you can actually specifiy exceptions to the content type ID in the URL in the adapter but this is only used for making the request and not serializing the request.The text was updated successfully, but these errors were encountered: