在OrchardCms中有一种方法可以将布局模块从12宽改为16宽吗?

时间:2017-05-24 01:17:50

标签: orchardcms orchardcms-1.9

出于某种原因,Semantic-ui的网格是16宽,我正在研究Orchard Cms主题(在其他地方找不到)。

1 个答案:

答案 0 :(得分:0)

万一其他人在寻找。我发现目前从Orchard CMS 1.10.2开始,您可以在前端而不是后端执行此操作。

以下是如何针对引导程序更改前端网格的示例:https://github.com/OrchardCMS/TheBootstrapMachine/tree/master/Views/Elements

您无法更改管理页面网格的原因:https://github.com/OrchardCMS/Orchard/blob/6720b71cf3474a9a7b8a8cc9a99d58b1e733acfa/src/Orchard.Web/Modules/Orchard.Layouts/Elements/Grid.cs#L6

正如你所看到的,代码中有12个是硬盘。我想你可以扩展整个布局模块,但这将是很多工作,因为其他几个模块依赖它。

我打算使用Semantic-ui但是使用这个术语来使用他们的网格:

<div class="ui twelve column grid">
    <div class="four wide column">four</div>
    <div class="four wide column">four</div>
    <div class="four wide column">four</div>
</div>