English 中文(简体)
Drupal 视图: 输出项字段按字段分组, 而不是按项目分组?
原标题:Drupal Views: output item fields grouped by field instead of item?

因此,如果我现在想出一个观点, 输出三篇文章及其标题和文体字段, 一个被清理的 html 结构版本将是:

<div class="item-1">
   <div class="title">Item One Title</div>
   <div class="body">Blah Blah Blah......</div>
</div>
   <div class="item-2">
   <div class="title">Item Two Title</div>
<div class="body">Blah Blah Blah......</div>
</div>
<div class="item-3">
   <div class="title">Item Three Title</div>
   <div class="body">Blah Blah Blah......</div>
</div>

任何人都知道我怎样才能通过“观点”或最佳选择, 使这个结构变成这样:

<div class="titles">
   <div class="title1">Item One Title</div>
   <div class="title2">Item Two Title</div>
   <div class="title3">Item Three Title</div>
</div>
<div class="bodies">
   <div class="body1">Blah Blah Blah......</div>
   <div class="body2">Blah Blah Blah......</div>
   <div class="body3">Blah Blah Blah......</div>
</div>
问题回答

查看视图附件 。 设置您的第一个视图 w/ just 标题 。 添加显示 & gt; 附件, 覆盖您的字段以获取身体, 并使用附件设置来定位第一个附件 。 如果混淆的话, 应该有一些教程。 希望它有用 。





相关问题
Drupal Multi-language: Simple strings not translated

I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...

Setting up a WYSIWYG editor for Drupal site users [closed]

Looking through the Drupal contrib modules, and after a few Google searches, it becomes evident that there are any number of choices and combos available to set up a WYSIWYG editor in Drupal. I m ...

Change size of user/password login box

I don t know how to change the size of the login username/password boxes on the drupal site that I m trying to build. I m stumbling through the theming, and don t know where to find the file that ...

How does Drupal provide an edit/review/publish model?

How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...

Term for rotating header

I m looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the ...

Has anyone checked out Drupal 7? [closed]

Has anyone checked out a copy of Drupal 7 yet? What do people think? I m pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do ...

热门标签