Shannon
640b2c0ee0
Moves strings to constants, adds ControllerContextExtensions to get the UmbracoContext from the hierarchy of ControllerContext's, changes RenderModelBinder to use this method to get the UmbracoContext, changes UmbracoViewPageOfTModel to use this method to get the UmbracoContext, adds RouteDataExtensions to get the UmbracoContext from routedata, adds extension methods on the HttpContext to get the UmbracoContext from it.
2016-02-16 11:17:47 +01:00
Shannon
916bad82df
Ensures that the RenderActionInvoker isn't doing anything special so that MVC takes care of everything regarding async vs non-async and any controller descriptor/action descriptor lookups and cache. Creates a RenderIndexActionSelectorAttribute - this is used to decorate the underlying RenderMvcController.Index action. MVC will call into this method to check if the MethodInfo is valid, we then do a quick comparison of types, if the current type is the same as the reflected type, this means that the Index action has been overridden or there is no custom controller... lets use it. If the types don't match we'll do a simple reflected lookup to check if the reflected controller type (current controller) has more than one index action, if so, it means that a custom controller is in play and it has a custom index action... so we won't use the base class action and then it's up to MVC to find any other matching Index action based on the current request parameters. Added some tests for this too.
2015-11-18 14:59:29 +01:00
Stephan
ee0297bb69
U4-6631 - throw on missing physical template file
2015-06-15 17:36:53 +02:00
Shannon
f87764f9d5
a bit better support for unit testing controllers with ctor overloads
2015-04-13 20:13:57 +10:00
Shannon
c760a7c50d
Merge branch 'dev-v7-7.3.0-UmbHelperInterfaces' of https://github.com/Shazwazza/Umbraco-CMS into Shazwazza-dev-v7-7.3.0-UmbHelperInterfaces
...
Conflicts:
src/Umbraco.Web/Umbraco.Web.csproj
2015-02-18 17:14:55 +01:00
Shannon
1cb0cd296c
Decoupling more things, mostly to do with the PluginManager and logging which now requires an IServiceProvider so have created a simple instance of that.
2015-01-16 15:47:44 +11:00
Shannon
97c18980d8
fixes some tests
2015-01-09 11:07:38 +11:00
Shannon
77e672aec1
Exposes an ILogger property called Logger on all relevant base classes
2015-01-07 17:38:25 +11:00
Shannon
ebbbd80bb3
Fixes: U4-5065 Add event to modify the model on front-end for IRenderMvcControllers
2014-06-08 14:14:12 +02:00
Shannon
a57aa07721
Updated default controller resolver to use new IRenderMvcController interface, fixed some merge issues.
2013-06-25 09:55:45 +10:00
mattbrailsford
9b78cb3f7c
Updated RenderMvcController to have the view engines test for file existance, rather than assuming views will always be razor. This allows alternative MVC view engines to be used.
2013-06-13 09:26:45 +01:00
Shannon Deminick
9ad813d990
Fixes a couple issues with some routing tests.
2013-02-15 19:38:33 +06:00
Shannon Deminick
de13f7e361
WIP ... Fixes: #U4-1666, Updates documentService to not have to manually
...
refresh content cache (and fix the unpublishing too since that logic wasn't correct)
Adds DebuggerDisplay support to ContentBase and Entity for better debugging info.
Adds new internal publishing methods to support publishing all children or only children previously published. This also adds new support
for getting a published result back even with bulk publishing.
Updates the publish dialog with new code and to use the new API based on issue #U4-1669.
Adds UmbracoUser property to AuthenticatedUmbracoController, Adds all common properties to the abstract UmbracoController.
Changes the legacy Document to allow content cache to be automatically refreshed (based on events)
2013-02-09 04:05:01 +06:00
Shannon Deminick
c9d55a4a5e
Merge with 6.0.0 - Ensures 6.1 is in sync with 6.0 too
2013-01-29 10:15:49 +06:00
Shannon Deminick
66bf667100
Merge with 4.11.4
2013-01-29 09:58:47 +06:00
Shannon Deminick
a2b5b13432
Fixes missing 'using' reference
2013-01-29 08:38:34 +06:00
Shannon Deminick
df1cfaba28
Applies patch for #U4-1536
2013-01-29 07:50:55 +06:00
Shannon Deminick
5e9f4559b6
Fixes: #U4-1536
2013-01-29 07:49:14 +06:00
Shannon Deminick
020fa577f0
Fixes: #U4-1357 - more properties to expose context objects on SurfaceController and RenderMvcController base classes.
2012-12-28 18:31:10 +03:00
Shannon Deminick
8be97295dc
Added new method to RenderMvcController for easier return of the current template when hijacking routes.
...
Added better error checking for media handling in MVC.
2012-11-16 00:38:03 +05:00
Shannon Deminick
d4d4272b1b
Moved RenderModel to Models namespace. Created new base UmbracoViewPage to use for umbraco partial views, etc... and renamed
...
RenderViewPage to UmbracoTemplatePage which now inherits from UmbracoViewPage. Added NiceUrl and NiceUrlWithDomain as extension
methods to IPublishedContent.
2012-10-24 09:59:23 +05:00
Shannon Deminick
ffd14c839b
After talks with morten and stephane, this renames
...
DocumentRequest -> PublishedContentRequest
2012-10-02 01:40:19 +05:00
shannon@ShandemVaio
2e5db72a09
Updated DocumentRequest so that it doesn't actually do the searching, it acts more like a model.
...
The DocumentSearcher now performs the searching and sets the properties on the DocumentRequest, this
simplifies the dependencies between the contexts. Updated the LookupByNiceUrlTests unit test, now all
initialization is working and the test runs which will be the basis for testing all of the IDocumentLookups.
2012-08-09 04:15:35 +06:00
shannon@ShandemVaio
739de3ef78
Started writing tests for all DocumentLookups as these all require many tests including tests for
...
routes when using IIS 7 and pre-IIS 7 platforms.
2012-08-08 23:55:55 +06:00
shannon@ShandemVaio
626b9ceefa
Updated Web.UI project to support MVC and VS MVC dialogs.
...
Updated RenderViewPage to include UmbracoContext and DocumentRequest.
2012-08-08 23:37:54 +06:00
shannon@ShandemVaio
4111298b00
Got routing working properly with MVC and our HttpModule
2012-08-08 23:10:34 +06:00
shannon@ShandemVaio
d92d309c61
Added initial MVC supporting files and updated some unit tests.
2012-08-07 21:40:34 +06:00