-
This is my first project using Contentful. How do I do that? I looked over the types in the Contentful model and did not see the answer? Thanks in advance, this is my last step to complete the sprint I think. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I may have found an answer here for anyone that's interested but it ain't pretty and seems overly complicated for such a simple thing IMO. |
Beta Was this translation helpful? Give feedback.
-
This is a follow up for anyone else looking for an easier solution. {data.contentfulPages.slug == 'locations' && } |
Beta Was this translation helpful? Give feedback.
This is a follow up for anyone else looking for an easier solution.
I created a component for the location list with links e.g. '/location/dallas' and then used the following to include the component only on the 'locations' page via checking the slug. Yeah it feels a bit hacky but it beats hours of integration coding to decode rich text 👍
{data.contentfulPages.slug == 'locations' && }