Drupal 视图显示
我有两种内容类型,称为网络作业和网络作业。我需要在页面中以选项卡形式显示此内容类型节点,例如选项卡中的网络作业和另一个选项卡中的网络作业以及标题、帖子和日期位置等常见字段。
为此,我尝试使用 drupal 中的视图模块,这以组合方式显示结果,因此不在单独的选项卡中显示。
我还尝试了视图选项卡模块,但没有得到预期的结果。
任何人都可以提供有关如何实现我想要的结果的线索吗?
提前致谢
I have two content types called web jobs and network job. I need to display this content type nodes in tabbed form in page like web jobs in tab and network job in another tab both common fields like title, post and date location.
For this I tried to use the views module in drupal,this shows results in a combined manner, so not in separate tab.
I also have tried the view tabs module without getting the expected result.
Could any body give a clue as how to achieve my desired result.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每个视图可以有多个显示。第一个显示称为默认值。然后,您可以创建可以复制原始默认显示但可以更改的页面、块等。您可以为两种内容类型创建一个具有默认视图的视图,然后,您可以创建特定的显示:
实际上您不需要查看选项卡(一个单独的模块)。版本 6.x-2.x 中的视图很好地支持选项卡。 高级帮助中详细描述了选项卡配置。以下是可能对您有用的示例:
完成此操作后,您现在将拥有一个名为“选项卡”的导航链接,当您单击它时,您将转到选项卡,其中“选项卡 1”是显示的默认选项卡。然后,您可以在选项卡 1 和选项卡 2 之间单击。
Each view could have multiple displays. The first display is called Defaults. Then you can create pages, blocks, etc., that can copy the original Defaults display, but can be changed. You can create a view with default view for both content types and then, you can create particular displays:
Actually you don't need View Tabs (a separate module). Views in version 6.x-2.x supports tabs well. The tabs configuration is well described in Advanced Help. Here is the example that could be useful for you:
With this done, you will now have a Navigation link named 'Tabs' and when you click on it, you will go to the tabs, with 'Tab 1' being the default tab that appears. You can then click between Tab 1 and Tab 2.