# Populate Content Link in Layout Components

**URL:** <https://discourse.getcockpit.com/t/populate-content-link-in-layout-components/2600>\
**Category:** Cockpit v2\
**Created:** [December 8, 2022, 12:27pm UTC](https://discourse.getcockpit.com/t/populate-content-link-in-layout-components/2600 "2022-12-08T12:27:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielWahl](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/danielwahl/32/1481_2.png) [@DanielWahl](https://discourse.getcockpit.com/u/DanielWahl)\
**Post date:** [December 8, 2022, 12:27pm UTC](https://discourse.getcockpit.com/t/populate-content-link-in-layout-components/2600/1 "2022-12-08T12:27:35Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [December 12, 2022, 12:48am UTC](https://discourse.getcockpit.com/t/populate-content-link-in-layout-components/2600/2 "2022-12-12T00:48:22Z")

</div>

Hey 👋

`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).
