smartstore / Smartstore

A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
http://www.smartstore.com/
GNU Affero General Public License v3.0
1.21k stars 449 forks source link

change priority Razor View Engine plugin with Themes #329

Open pineportal opened 6 years ago

pineportal commented 6 years ago

It is now in the form below

~/Plugins/PineStore.MyPlugin/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Plugins/PineStore.MyPlugin/Views/MyPlugin/PublicInfo.cshtml
~/Plugins/PineStore.MyPlugin/Views/Shared/Layouts/PublicInfo.cshtml
~/Plugins/PineStore.MyPlugin/Views/Shared/PublicInfo.cshtml
~/Themes/Beauty/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Themes/Beauty/Views/MyPlugin/PublicInfo.cshtml
~/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Views/MyPlugin/PublicInfo.cshtml
~/Themes/Beauty/Views/Shared/Layouts/PublicInfo.cshtml
~/Themes/Beauty/Views/Shared/PublicInfo.cshtml
~/Views/Shared/Layouts/PublicInfo.cshtml
~/Views/Shared/PublicInfo.cshtml

I've made a widget. and I want to create template. but do not change view in thems. Better Razor View Engine

~/Themes/Beauty/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Themes/Beauty/Views/MyPlugin/PublicInfo.cshtml

~/Plugins/PineStore.MyPlugin/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Plugins/PineStore.MyPlugin/Views/MyPlugin/PublicInfo.cshtml
~/Plugins/PineStore.MyPlugin/Views/Shared/Layouts/PublicInfo.cshtml
~/Plugins/PineStore.MyPlugin/Views/Shared/PublicInfo.cshtml
~/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Views/MyPlugin/PublicInfo.cshtml
~/Themes/Beauty/Views/Shared/Layouts/PublicInfo.cshtml
~/Themes/Beauty/Views/Shared/PublicInfo.cshtml
~/Views/Shared/Layouts/PublicInfo.cshtml
~/Views/Shared/PublicInfo.cshtml

or

~/Themes/Beauty/Plugins/PineStore.MyPlugin/Views/MyPlugin/Layouts/PublicInfo.cshtml
~/Themes/Beauty/Plugins/PineStore.MyPlugin/Views/MyPlugin/PublicInfo.cshtml
pineportal commented 6 years ago

2018-09-23 1

muratcakir commented 6 years ago

Seems to make sense, but hard to accomplish for theme designers because the model types are (in most cases) not available in the main web project (no reference from web to plugin).