Hi, I'm trying to create a custom dashboard. I've added it, and it displays and welcomes the user. Awesome stuff.
Now, I want to list some of the content. However, I'm struggling to figure out how to get the data. I can import a MediaService, but I can't find a ContentService.
Could you point me in the right direction?
bjarke
10/02/2024, 7:02 AM
I just looked through some custom dashboards on the Umbraco marketplace. I see that they have created their own endpoints for retrieving data and displaying it. Would this be the right way to go?
j
Jacob Overgaard
10/02/2024, 7:10 AM
Depends what content. In general, you should be able to find a repository for umbraco content, e.g. documents could be listed through the
UmbDocumentTreeRepository
import from
@umbraco-cms/backoffice/document
b
bjarke
10/02/2024, 7:45 AM
Thanks, I will take a look into that. My first mission is to list the last 10 edited documents
j
Jacob Overgaard
10/02/2024, 7:47 AM
You would probably need your own API endpoint to get that