Retrieving Content Hub Folders

2024/07/23 12:36 PM

Hello, is there any option to retrieve folders in the content hub? Something that has the same behavior as IWebPageFolderRetriever. We are receiving articles via API from a different site and we want to save them with IContentItemManager in folders according to their topic. For example:

Articles ----> Food
		  |
		  |--> Life style

IContentFolderManager can create new folders, but is there any way to check if a folder already exists?


Environment

  • Xperience by Kentico version: [29.1.5]
  • .NET version: [8]
  • Deployment environment: [local]

Answers

2024/07/23 12:51 PM

I don't think there are any public APIs for this at the moment, but we could expose them in a future Refresh if needed based on feedback on the roadmap.

In the meantime, I would recommend using a taxonomy instead of folders. The taxonomy is going to be more usable across Xperience - both in content management and delivery.

Taxonomies were designed for both administrative and presentational responsbilities, so it's fine to have a taxonomy that is only used by marketers to organize content.

Once you have your taxonomies defined, you can use smart folders to persist your taxonomy filters in the Content hub to make them easily accessible.

To answer this question, you have to login first.