Drupal 视图预告片/正文切换
我在 Drupal 6 中有一个视图(视图 2),它使用表格格式输出一个页面。表中显示了几个字段,其中之一是节点:正文。我希望只显示预告片,但使用 + 符号或其他可单击元素将其切换到节点主体。我不想重新加载视图或切换,因为有时视图会有 400 行。
我一直在考虑的可能解决方案是使用 Views Accordian,但这不会保留表按其他字段排序的功能。
另一种选择是某种形式的 javascript 或 ajax 视图更新,以在两个字段之间交换,或者从显示中排除一个字段并显示另一个字段。
另一个选项是一些基于 css 的 javascipt,通过链接限制正文的高度,然后可以将其扩展至完整高度。
我希望有人能提供帮助。
I have a view in Drupal 6 (views 2) and it outputs a page using the table format. I have several fields showing in the table, one being the node:body. I would like to have only the teaser shown but a + symbol or other clickable element to switch that to the node body. I don't want to have to reload the view or switch over as sometimes the view will have 400 rows.
The possible solutions I have been considering would be to use Views Accordian, but that does not keep the functionaly of the table to sort by the other fields.
The other option is some form of javascript or ajax update of the view to swap between the two fields, or exclude one from the display and reveal the other.
The other option would be some css based javascipt to limit the height of the body with a link that can then expand it to full height.
I hope someone can help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以继续使用表格格式,但添加一个 jQuery 插件,例如 Readmore。
You could continue to use the table format, but add a jQuery plugin like Readmore.