Custom Block View: How best to resolve content from a MNTP Unique?

Hello @warren,

As per most of my responses, please don’t take this as gospel, I’ve been trying all sorts of stuff, and the last thing I want to do is lead people up the wrong garden path.

However. If you see this reply on this post:

Using the DocumentItemRepository might help you get the content via the unique property for your card item.

import { UmbDocumentItemRepository } from '@umbraco-cms/backoffice/document';

and

let { data } = await this.#itemRepository.requestItems( [unique] );

I might be wrong, but .requestItems is looking for an array of unique’s.

Thank you,
Rob

2 Likes