Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: Asp.net MVC Paths Editor/Display Templates [568]

$
0
0
Please allow for using path names when using Editor or Display templates as you can currently do with views. Example: when using a View or Partial View can use the following path name "~/myfolder/myview.cshtml". This should work also when setting up Editor or Display templates as well.

The VirtualPathViewEngine has logic in the 'GetPath' method that detectes leading "~/" or "/" in the view name and bypasses the view locations for a path. All that would be needed is the same kind of detection in the TemplateHelpers.ExecuteTemplate method. Currently the method always appends "EditorTemplates/" or "DisplayTemplates/" regardless of if a path is specified.

Viewing all articles
Browse latest Browse all 7215

Trending Articles