Drupal 6:视图模块生成 div 混乱:/

发布于 2024-09-07 06:25:24 字数 312 浏览 5 评论 0原文

我用视图模块创建了一些块。查看模块确实让事情变得简单!但它输出了如此多的 div、类名等。在某些情况下它会变得混乱。以下示例:

替代文本 http://img.skitch.com/20100630-kh7rtfgj987c3dieibxu7wdxyd.jpg

如何从视图中获得干净的输出?没有任何div、span...

感谢帮助!多谢!

I created some blocks with View Module. View Module really makes things easy! but it puts so many divs, class-names, etc... to output. and it mess up for some cases. example below:

alt text http://img.skitch.com/20100630-kh7rtfgj987c3dieibxu7wdxyd.jpg

How can I get a CLEAN output from view? without any div, span...

Appreciate helps! thanks a lot!

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

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

发布评论

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

评论(3

醉生梦死 2024-09-14 06:25:24

您可以为视图编写自己的主题文件以覆盖默认输出。如果您在视图管理中单击“主题信息”,它将向您显示所使用的候选模板文件。

然而,拥有大量 div 并不一定会造成伤害,因此请谨慎对待重新主题。

You can write your own theme files for the views to over ride the default output. If you click on 'theme information' in your views admin it will show you the candidate template files used.

However having a lot of divs won't hurt necessarily, so approach re theming with caution.

白昼 2024-09-14 06:25:24

您还可以尝试语义视图

You can also try Semantic Views.

半岛未凉 2024-09-14 06:25:24

在基本设置中尝试 Style=unformatted(而不是网格、表格或面板等)。

Try Style=unformatted in the basic settings (as opposed to Grid or Table or Panel etc).

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