6

We have a couple of Category/Keywords that are using a MetaData Schema, and the Tag class provided by DXA doesn't contain the metadata and looking at the source code I can't see a way to easily enrich it.

I was wondering what the best approach for this would be?

Long term it would be nice to see a similar approach to components where we can inherit tag and add any extra properties.

2

1 Answer 1

1

With regards to your I was wondering what the best approach for this would be? question, it appears that even DD4T now recommend using the Tridion.ContentDelivery.Taxonomies.TaxonomyFactory rather than their original DD4T.Factories.TaxonomyFactory class:

https://github.com/dd4t/dynamic-delivery-4-tridion/blob/master/dotnet/DD4T.Factories/TaxonomyFactory.cs

Therefore, you may want to use an service layer within your application that accesses the Keyword details using Tridion.ContentDelivery.Taxonomies.TaxonomyFactory and supliments your model with this information.

You may want to look at the Retrieving Keyword properties page in the online documentation for an example of using the TaxonomyFactory to get the Keyword Metadata.

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.