Allow multiple content types to use same layout
bechatman opened this issue · 0 comments
bechatman commented
This is probably the most edge case of edge cases, but I was trying to automatically generate multiple pages from a single content type and ran into a problem. The set up is this:
- I set up two content types, 'resource' and 'landing page' that have the same content model but are separate in Contentful and use separate templates.
- I needed to add thank you pages to redirect people to, so I created a thank you page layout and made a second call to 'resource' with a different name and the thank you layout. I also made a second call to 'landing page' and used the same thank you template.
- Doing so caused only the landing page thank you pages to output, but all the data was present in the output JSON file.
I took a wild guess and just copied the templates so each content type used its own layout and that fixed it.
Not sure if this is something that needs changed or documented, but I wanted to put this out there for thoughts.