Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 NopCommerce 2.1 中编写插件。我想知道是否有一种方法可以强制插件中的视图页面使用 _AdminLayout.cshtml 而不是 _Root.cshtml?可能吗?
谢谢先进
简而言之,答案是肯定的......但我假设你也想知道如何:)
@model MyModel @{ Layout = "~/admin/Views/Shared/_AdminLayout.cshtml"; } <div>My HTML</div>
我对 nopCommerce 很陌生,还不知道身份验证和授权是如何工作的,所以我不知道使用管理布局的含义。如果您的插件仅用于管理站点,我认为这很好。
This is a line I've encountered inside a DAO class:
pages.addAll((List<Page>)getCurrentSession() .createCriteria(Page.class) .ad
Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641