Drupal 7 视图合并
我最近开始使用 Drupal 进行开发,尽我所能地阅读和学习。
我正在尝试制作一个“团队”页面。我有一个名为“团队成员”的自定义内容类型,其中包含:姓名、照片、简历和角色(协调员或发言人)。我添加了我的团队成员,现在我想编写一个列出我所有成员的视图(在 /team 上)。问题是,两种成员(演讲者协调员)的布局略有不同,而且我想在每种类型之前都有一个。
像这样的事情:
<h1>Team</h1> <h2>Coordinators</h2> <ul>...Coordinators here...</ul> <h2>Speakers</h2> <ul>...Speakers here...</ul>
有什么想法可以实现这一目标吗?谢谢!
I'm recently starting to develop with Drupal, reading and learning all I can.
I'm trying to make a "Team" page. I have a custom content type called "Team Member" with: Name, Photograph, Bio, and Role (Coordinator or Speaker). I added my team members and now I want to write a view (on /team) that lists all of my members. The problem is, the two kinds of members (coordinators of speakers) have slightly different layouts and, also, I want to have a before each type.
Something like this:
<h1>Team</h1> <h2>Coordinators</h2> <ul>...Coordinators here...</ul> <h2>Speakers</h2> <ul>...Speakers here...</ul>
Any ideas how to achieve this? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
视图允许您添加附件(请参阅 http://drupaleasy .com/blogs/ultimike/2009/07/using-views-relationships-arguments-attachments),它本质上可以让您组合两个或多个意见合而为一。
Views allows you to add attachments (see http://drupaleasy.com/blogs/ultimike/2009/07/using-views-relationships-arguments-attachments) which essentially lets you combine two or more views in one.