5

I have a Component Link in the Metadata Section of a Page.

I cannot see the content of this Component in the Page JSON which is published to the Broker DB.

Is it possible to get the content of the Component? Or is it necessary/possible to query the Content Delivery API to fetch the content of this Component?

Link Level is set to 5. Have try to set to 20 an no success.

  • 1
    Can you edit your question and specify what the LinkLevels is set at, in the Page Template? – Bart Koopman Apr 11 '17 at 14:49
4

The problem is because the link level is set on the wrong TBB.

Since all DD4T TBBs use the same parameter schema, the TBBs seem to use the value from the first TBB in which the value was set.

So if you don't the link levels in the very first TBB, it will use the default, even if you set it further down.

In your scenario, the link level was not set on "Add inherited metadata to page" so it was using the default, even though "Generate dynamic page" had the link level set to 20.

enter image description here

  • Mind you setting a link level to 20 sounds really bad to me (5 is already high if you ask me), that would include so many linked items that you are risking publishing all Components in your CMS with every Page. – Bart Koopman Apr 12 '17 at 7:55
  • Agreed - 20 was set as a test when it wasn't working. – Rob Stevenson-Leggett Apr 12 '17 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.