开发者

Drupal, Views module, Group fields in layout

I want to group some fields inside a div or similar HTML tag, for example I'm displaying node's title + node's teaser + node's image, I want to group the title and teaser into one DIV in layout for easier CSS styling.

I know a silly method to do it in templates, but I want a quicker and easier method (Drag-and-drop in views edit). A similar ex开发者_如何学编程ample is CCK Fieldgroup.


semanticviews can do it http://drupal.org/project/semanticviews. You can customize html output and group field from the views interface.

You can also group the Field with CCK and dipslay the node instead of field.

Or using node.tpl.php to chose exactly witch field you want to show and how.


There is also a sandbox project I have used before for grouping views fields into columns at edward_or's sandbox. I have found this the simplest to use of all the modules.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜