3

I'm using Web 8.5 and trying to construct a content delivery query to extract the schema of a given component. In older versions of Tridion, I'd have used a ComponentMetaFactory to get the ComponentMeta of the item and then used the ComponentMeta API to get the schema.

Looking at the API documentation, these classes don't seem to be there any more. The closest-sounding classes seem to come in packages related to transportpackage, so that's probably not what I want either.

So given that I've already got a query that will give me the ID of the component I'm interested in, how can I further query the API to get the item's metadata?

1 Answer 1

3

Not sure if you’re talking about .NET or Java, but ComponentMetaFactory still exists. See, for example, its usage in DXA 1.8: https://github.com/sdl/dxa-web-application-dotnet/blob/release/1.8/Sdl.Web.Tridion/Statics/BinaryFileManager.cs

2
  • I'm working in java. I've seen a generic method that casts to a binary or a page, but not a component. Commented May 29, 2018 at 21:21
  • 3
    Prompted by the fact that it's still there in .NET, I've looked again. ComponentMeta and ComponentMetaFactory are there in the implementation, and present in the .NET documentation. They aren't deprecated either, so I think this is just a documentation bug. Commented May 30, 2018 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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