Try our conversational search powered by Generative AI!

How do I make a view model for a Block?


I would like to add a list of objects to my Blocks view model, but I can't use my knowledge of making page view models to make block view models. How would I go about his?

Jun 16, 2017 8:28

Take a look at the ContactBlockController in the Alloy templates, it creates a view model for the ContactBlock type.

You could also take a look right here:

Jun 16, 2017 10:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.