1

Closed

Add ability to store "plain" shapes in subdirs of <Module>/Views/ dir

description

Discussion here: http://orchard.codeplex.com/discussions/400649

If returning a ShapeResult from a custom controller, you cannot currently use the shape naming conventions to have Orchard render a shape using a template in a subfolder of the Views folder. The template has to be a direct child of the Views folder. Can we enhance it so you can use templates from subdirs with ShapeResult?
Closed Nov 6, 2012 at 9:25 PM by sebastienros

comments

sebastienros wrote Oct 25, 2012 at 11:17 PM

You can implement your custom logic by implementing IShapeTemplateHarvester.
The current implementation looks into Parts, Fields, and you can place shape in Views/Items directly if you want.

Adding more by default would create more FileSystemWatchers and also create more shapte table entries than necessary.