Drupal 7 中需要面板吗?

发布于 2024-11-03 09:45:43 字数 464 浏览 0 评论 0原文

一些解释 - 我是一名 Drupal 6 开发人员,从未使用过面板,但正在寻找一个新站点,我最初打算在 D6 中构建该站点,但现在将在 D7 中构建,因为我需要模块一切似乎都可用。

这将是我的第一个 D7 网站。

对于这个网站,我打算使用 D6 中的面板,原因如下:

  • 网站中的大多数页面都会有一个侧边栏,但该侧边栏的组成会有所不同,并且“内容区域”可能会细分为最多3 个分区,可以是 1+1+1 或 2+1,包括在同一页中从一个分区到另一个分区(即 1+1+1 之上的 2+1)。
  • 主页将完全不同并且有自己的布局。
  • 某些页面(例如论坛)将是“全角”并且没有任何侧边栏。

似乎小组可以完成所有这些(如果没有,那就很高兴知道:-)。

在 Drupal 7 中,面板仍然是一个不错的选择,还是有更好的方法?这似乎超出了我对简单块和区域的理解所能做到的,但我可能是错的......

A bit of explanation - I'm a Drupal 6 developer who has never used Panels, but was looking at it for a new site that I was going to initially build in D6, but am now going to build in D7 since the modules I need all seem to be available.

This will be my first D7 site.

For this site I was going to use Panels in D6 for the following reasons:

  • The majority of the pages in the site will have a sidebar, but the composition of that sidebar will vary, and the 'content area' may be subdivided in up to 3 divisions, either in 1+1+1 or 2+1, including back and forth from one to the other in the same page (ie 2+1 on top of 1+1+1).
  • The homepage will be completely different and have its own layout.
  • Some pages, such as the forum, will be "full-width" and will have no sidebar whatsoever.

It seemed like Panels could accomplish all of these (if not, that would be good to know :-).

In Drupal 7, is Panels still a good bet for this, or is there a better way? It seems beyond what my understanding of simple blocks and regions can do, but I may be wrong...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

从来不烧饼 2024-11-10 09:45:43

这一切都可以通过常规块和区域来实现,面板更容易管理,并且具有可导出的额外优势。

It's all possible with regular blocks and regions, Panels is just much easier to administer, and has the added advantage of being exportable.

萌化 2024-11-10 09:45:43

虽然完全不使用 面板 就可以实现结果,如上面 mirzu 的答案所示,但我强烈推荐您可以使用面板模块,因为面板只不过是可视化页面构建器,允许您通过简单的拖放来更改页面的布局。您可以直接从前端轻松定义和自定义布局(无需接触任何 CSS 或 HTML)。

面板还允许您将内容(视图、节点、迷你面板等)嵌入到您可以在布局中指定的区域中,从而允许进行大量的页面自定义。

恕我直言,面板模块非常容易配置,并节省大量时间,您应该使用它而不是块/区域组合。

Although its possible to achieve the results without using Panels at all as indicated by mirzu's answer above but I would highly recommend you to use Panels module, because Panels are nothing but visual page builders that allow you to change your page's layout by simple drag and drop. You can define and customize your layouts easily (without touching any CSS or HTML) right from the front end.

Panels also allow you to embed content (views, nodes, mini-panels etc) within regions that you can specify in the layout which allows tremendous page customization.

IMHO Panels module is quite easy to configure and saves a lot of time and you should use it instead of the block/region combination.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文