Basically I want to use a custom model in a view that inherits a template.
Instead of using child actions I am doing route hijacking based on the selected template for a given document type.
More specifically I have a cart template I want to feed a custom model, but I want this cart template to use my master template and I want to do it using route hijacking.
Is the only way really to use child actions, which if I understand it correctly are more to be used for reusable partial views?
MVC, custom models and template inheritance
The issue I have is described here : stackoverflow question
Basically I want to use a custom model in a view that inherits a template.
Instead of using child actions I am doing route hijacking based on the selected template for a given document type.
More specifically I have a cart template I want to feed a custom model, but I want this cart template to use my master template and I want to do it using route hijacking.
Is the only way really to use child actions, which if I understand it correctly are more to be used for reusable partial views?
is working on a reply...