Registering Strongly Typed Topic Models (Java)
Use the View Model Registration mechanism to register your Strongly Typed Topic Models.
Strongly Typed Topic Models must be registered. If you create new models, register them using the View Model Registration mechanism.
Use the RegisteredViewModel annotation that takes only a View Model Class. Since View names are not specified to content published from Tridion Docs, you don't need to map to a View.
Example
@RegisteredViewModels({
@RegisteredViewModel(modelClass = Topic.class),
@RegisteredViewModel(modelClass = LearningBaseBody.class),
})
public class ExampleDocsInitializer extends AbstractModuleInitializer {
@Override
protected String getAreaName() {
return "Test";
}
}