mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.17k stars 913 forks source link

Add a custom component content type to Contentful #10514

Closed pmac closed 1 year ago

pmac commented 3 years ago

We need the ability to specify that a custom bit of code should be inserted in a specific place on a page managed by Contentful. The need at the moment is to be able to insert the "what we're reading" pocket feed into the home page re: #10508. The proposal for how this can work is as follows.

  1. Create a new content model in Contentful called e.g. "CustomCode".
  2. Add a choice field to this model and have the choices be the custom components
    • For now the only choice will be "Pocket Feed"
  3. This will send pocket-feed as the data to bedrock, which should insert the pocket feed when it sees this component with this data.
  4. We can then use this to add more custom components as placables on pages.
alexgibson commented 1 year ago

@pmac is this still needed today, given the pocket feed is no longer featured on the home page?

pmac commented 1 year ago

I think you're right. This has been solved other ways and we can file something new when/if we need something specific.