Note: I do not want to use separate Entry types that are embedded into Rich Text, because none of this content is re-usable outside of the individual article entry. contentful/rich-text-html-renderer CDN by jsDelivr - A CDN for npm and GitHub Package contentful/rich-text-html-renderer was not found. I don’t see any options for specifying alignment inside the Rich Text field, or creating these richer “building blocks”? How can I do something like this with Contentful? What is Contentful Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. It helps in easily rendering rich text stored in Contentful using Java. So then the author can take these “modules” and craft the article layout in a variety of ways and, likewise, our front-end code knows how to display these modules. Contentful Rich Text Rendering Library for Java Java library for Rich Text API. In Prismic, I’m able to create custom Slices that are repeatable pre-defined modules inside the page – for example, “panel with image aligned to left”, “panel with image aligned to right”. This is what it will look like at this point. Take the butter, flour and eggs and mix it in a bowl. Some sections inside the article body require showing images left or right-aligned with paragraph text.įor example, the rendered page HTML might end up with a structure like this: Recipe ingredients I have a long-form article page with a Rich Text field for the main article body, since the structure of the content inside is completely ad-hoc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |