drupal视图中的无序列表
我在页面视图上有大约九个字段(也就是说,我使用视图来创建页面)在该页面中,我想将其中大约四个字段输出为无序列表。不是全部9个字段,我怎样才能实现这个?
I have about nine fields on a page view (that is i have used views to create a page) In that page, i would like to output about four of those fields as an unordered list. Not all 9 fields, how can i achieve this?
您应该编写一个特定的视图模板来执行此操作。
http://drupal.org/node/352970
您还可以:从显示中排除前 3 个字段,并在第四个字段上选中重写此字段的输出以显示您想要的四个字段(您将需要令牌模块)。但这会导致 w3c 验证错误,因为 span 内不允许 ul。
You should write a specific view template for doing this.
http://drupal.org/node/352970
You can also : exclude from display the first 3 fields, and check Rewrite the output of this field on the fourth field to display the four fields like you want (you will need token module). But this will cause w3c validation error since ul is not allowed inside span.