Have been working with ASP.Net MVC for some years now and don't know if this is my problem, trying to do things in similar in Umbraco.
However, my site got the following structure.
Web
| Home
| About
| - Extra1
| - Extra2
| Contact
Home has its own document type and template, called "Home".
About, Extra1 and Extra2 is all of the same document type and template, called "MenuLeft".
When home is requested the "HomeController" and action "Home" is called, no problems there, but when "About", "Extra1" and "Extra2" is requested the "MenuLeftController" with the action "MenuLeft" is called.
What i want is that action "About" is called when page content "About" is requested and so on.
The reason i´m doing it this way is for my views to have typed models.
Am i thinking this backwards or is this the preferred way?
Yea you should be able to do this :). Why do you need your views to have stronly typed models? Its a way but while you have st models you now have a ton of controllers and actions? Charlie :)
Hijacking controller, action for content page
Hi,
Been trying to get some sense into this.
Have been working with ASP.Net MVC for some years now and don't know if this is my problem, trying to do things in similar in Umbraco.
However, my site got the following structure.
Home has its own document type and template, called "Home".
About, Extra1 and Extra2 is all of the same document type and template, called "MenuLeft".
When home is requested the "HomeController" and action "Home" is called, no problems there, but when "About", "Extra1" and "Extra2" is requested the "MenuLeftController" with the action "MenuLeft" is called.
What i want is that action "About" is called when page content "About" is requested and so on.
The reason i´m doing it this way is for my views to have typed models.
Am i thinking this backwards or is this the preferred way?
Best regards
Robert
Yea you should be able to do this :). Why do you need your views to have stronly typed models? Its a way but while you have st models you now have a ton of controllers and actions? Charlie :)
Hi Charlie,
Yeah, well, for this site its not that many doc types nor templates which makes it quite easy to maintain.
//Robert
Figures my question was in the right direction and marks this thread as resolved.
//R
Ok :)
is working on a reply...