So I have been trying to set up a content relationship system with Next JS, so that I can re-use a piece of content within another page.
As an illustration:
In a custom type pillar_page "jobs in Canada", I want to be able to pull a page of type country_faq, specifically the page "Canada" which contains let's say a FAQ about finding jobs in Canada.
I want to be able to retrieve the data of the country_faq type "Canada" to display its content within my pillage_page "Jobs in Canada".
What is the easiest way to do that with Next JS?
Option A :
- Set the content directly within the custom type "country_faq" without creating any slice within this custom type
- Pull the "Canada" country_faq page through a dummy slice content relationship in the "jobs in canada" pillar_page
Issue: how to configure a "custom_type" that will not have a real route in my application? Instead this custom_type will only act as a slice, as it will live only when call through a slice through content relationship?
Option 2 : a bit more hacky
- Add a "CountryFaq" Slice in the country_faq "Canada" page, that will have the whole content
- Pull the "Canada" country_faq page through a dummy slice with content relationship in the "jobs in canada" pillar_page:
Issue ---> Instead of getting the content in the "Canada" country_faq page (basically it's CountryFaq slice), I am getting the content of the dummy slice containing the content relationship. Namely, nothing.
Hope this is clear
Thanks in advance for your help!