视图中打开 2 个寻呼机 - Drupal 6
我想知道如何在我用视图创建的表格的顶部和底部有一个寻呼机。
I am wondering how it would be possible to have a pager at the top and the bottom of my table which I created with Views.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过将views-view.tpl.php从views/theme目录复制到您的主题中来完成此操作。一旦出现,对其进行编辑,然后复制
views-content
部分下方的行,然后在上面放置另一个副本。请注意,这将为您的所有视图复制寻呼机。如果您只需要在非常具体的视图上执行此操作,则可以单击视图编辑表单的主题信息部分,它将向您显示特定视图的所有可能的模板。
You can do this by copying the views-view.tpl.php from the views/theme directory, into your theme. Once it is there, edit it, and copy the lines
from below the
views-content
section, and place another copy above.Note that this will duplicate the pager for all of your views. If you only need to do this on a very specific view, you can click on the theme information section of the views edit form, and it will show you all the possible templates for a specific view.
谢谢你的建议。我在我的 drupal 7 网站上尝试了自定义寻呼机模块(目前在本地主机上),但尽管配置正确,但无法让它显示两个寻呼机。
作为一名 css 爱好者,我将顶部分页器封装在一个 div 中:
我使用位于主题 css 目录中的 view-styles.css 文件中的组合类,
将分页器显示在特定视图上。 .view-titleview 类可以在特定网页的源代码中找到:chrome 或 IE 中的 ctrl-u,或 fire-bug
要在多个视图上显示相同的分页器,您可以将这些类添加到相同的 css 代码中就像:
记住在两个类之间放置一个空白。并且不要忘记在删除第二个组合类时也删除 , 。
Thanks for the suggestion. I tried the custom pager module on my drupal 7 website (as for now on a local host), but could not get it to display two pagers despite the correct configuration.
As a css-addict I enclosed the top-pager in a div:
I used the combined classes in a view-styles.css file that was sitting in my theme css directory
to have the pager displayed on a specific view. The class .view-titleview can be found in the source code of the specific webpage: ctrl-u in chrome or IE, or fire-bug
To show the same pager on several views, you can add the classes to the same css-code like:
Remember to put a blanc space between the two classes. And don't forget to also remove the , when deleting the second combined classes.