We are (potentially) running two very similar websites from the same Prismic CMS.
site-A is a big bloggy, promotional thing with lots of company info, a signup flow and account mgt sections.
site-B is a vastly reduced / minimised version with way less pages, no blogs etc.
So on the homepage, we want to be able to offer ‘slices’ of content (hero image, links to blogs, some text etc) that do appear on site-A, but do NOT appear on site-B.
From the research i’ve done ‘slices’ might be a good way to achieve this.
We would add in the ‘slice’ to the custom type of ‘page’.
So then ‘page’ custom type might be:
then a ‘slice’
Within the slice would be ‘hero-image’ [custom type] and ‘header’ [custom type].
Editors could then add in the ‘slice’ if they wanted to, on the “home page” instance of ‘page’ custom type.
And because both site-A and site-B are taking the slug ‘/’ (root) and rendering the ‘home page’ document, they would then read the content within it accordingly.
AND in the homepage document, Editors could give the sliced content a ‘label’ of ‘siteA’ or ‘siteB’, depending on which site they wanted this hero-image and/or header to be seen on.
I hope i’ve understood correctly that slices could achieve this ^^
I cannot find a way to add my custom types to the ‘slice’.
I am just offered 6x options in ‘Use an existing slice’ (eg. ‘Quote’, ‘List of Articles’, ‘Image Gallery’ etc)
If i select ‘Create a new slice’, i just have the option to name it something, assign labels, give it an icon… there’s nowhere to drag in existing custom-types from. There is also nowhere i can edit the json of this slice - other than the json of the main ‘page’ custom type. And so then it is not clear how to add it and have it surface as my previously generated custom type, for example ‘hero image’.
How can i achieve this?