CG4T Generating ViewModels for DXA or DD4T

The first steps are the same as in generating a Constants class. See the CG4T Constants walkthrough for more info.

After choosing the ViewModels option:

You get the dialog to specify the schema publication and select the wanted ViewModels:

After pressing 'Generate!' CG4T takes time to generate the ViewModels and add them to you VS Solution:

When later your schema is changed, you can update by right clicking the ViewModel and choose the update option:

(Or open it in Tridion).

Back to CG4T Introduction page