重新排序通过视图附加添加的视图显示
我正在使用 Drupal 6.20、Views 2 和 视图附加模块将几个视图显示附加到完整节点视图。有什么方法可以对附加视图重新排序吗?视图仍应分组在一起(即,我不想在它们之间插入任何其他 CCK 字段),但我想以与它们自动出现的顺序不同的顺序显示它们。
I'm using Drupal 6.20, Views 2 and Views attach module to append few view displays to a full node view. Is there some way to reorder the attached views? The views should still be grouped together (ie. I do not want to insert any other CCK field between them), but I want to display them in different order than that they automatically appear in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过 GUI 没有简单的方法来执行此操作,因为 Views Attach 只是按照附件创建的顺序显示附件。
您需要将视图导出到代码(在“导出”选项卡下打开视图)并手动将附件移动到所需的顺序。您可能还需要更新附件编号(即附件_2 变为附件_1)。
使用“导入”重新导入视图 - 使用新名称或在运行导入之前删除旧视图。
There's no easy way to do this through the GUI as Views Attach just displays the attachments in the order they were created.
You need to export the View to code (open the view, under "Export" tab) and manually move the attachments into the required order. You may need to update the attachment number too (ie. attachment_2 becomes attachment_1).
Re-import the View using "Import" - either under a new name or by deleting the old view before you run Import.
看一下 Views 3.x,它提供了一个用于重新排序显示的 UI。我刚刚在 关于SO的类似问题。
Take a look at Views 3.x which offers a UI to reordering displays. I just attached some screenshots at a similar question on SO.