amitaibu / ihp-cms-starter

5 stars 2 forks source link

Show Paragraphs on Landing page #1

Closed amitaibu closed 1 year ago

amitaibu commented 1 year ago

I am experimenting with creating a Landing page with different Paragraphs. Those terms are from our Drupal starter kit, and look like this (there's the "node" view and the node edit page). Very handy for our content editors, that get the freedom to mix & match different structured content)

Drupal's Node view Drupal's Node edit
image image

Edit: Below is solved :balloon:

We're fetching all paragraphs using fetchRelated, however - how can we order them by weight (as we multiple paragraph types)?

For example. if one CTA had a weight of 1 and another of 3, how can we render it before/ after another paragraph type?

amitaibu commented 1 year ago

I've set the weight manually on the DB, and it renders correctly

image