Populate Content Link in Layout Components

Hey,

Is there a possibility to populate the data from a linked content item in Layout Components?

Cockpit Version: 2.3.4

I have a Layout Component called “Partner Preview” where an attribute called “linkedPartners” is linked to multiple Content items from the Content Collection “Partners”.
When adding the LC to a page in the Layout, the data of the linked partners is not visible, only the id:

linkedPartners: [
  {
    _id: "2592c3c6366165718c00004e",
    _model: "partners"
  },
  {
    _id: "dcdddbd7643033bae800002c",
    _model: "partners"
  },
  {
    _id: "dd7c6ca9633139f8a90000d6",
    _model: "partners"
  },
]

The fetch request to the page has &populate=1 in the URL.

Is there any way to populate the data from the linked partners in the Layout Component? (name, url, image, …)

Thanks in advance.

Hey :wave:

populate={n} is the level it should go down a nested object to resolve linked items. so 1 is just 1 level.

Try populate=-1 (infinite level).

1 Like