Documentation Center

Custom Region Models, Page Models and Entity Models

You can now create custom Models that are a subclass of the generic Models. You can also give those custom Models different Experience Manager markup than the generic ones.

Custom Region Models

A custom Region Model is effectively a Region Model Type that is a subclass of RegionModel. DXA instantiates the Region Model Type that is registered for the Region View. This change serves as a first step toward integration with the SmartTarget module.

Custom Page Models

A custom Page Model is effectively a Page Model Type that is a subclass of PageModel. You can map the metadata fields of the Page to Page Model properties by using the same model mapping mechanism used for Entities.

Experience Manager markup

Because the View Model generates the Experience Manager markup through the ViewModelGetXpmMarkup method, your custom Page Model, Region Model or Entity Model can override the method, which means that it can have its own Experience Manager markup.