Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple content types to use same layout #96

Open
bechatman opened this issue May 16, 2018 · 0 comments
Open

Allow multiple content types to use same layout #96

bechatman opened this issue May 16, 2018 · 0 comments

Comments

@bechatman
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant