简体   繁体   English

点新闻列表视图分页到不同的新闻列表视图插件(Typo3,新闻系统)

[英]point news list view pagination to different news list view plugin (Typo3, News system)

I have the following situation: 我有以下情况:

Page 1 has 2 news plugins: plugin 1 for a thumbnail view of the first 6 news records, and plugin 2 showing a list view of the rest. 第1页有2个新闻插件:插件1用于前6个新闻记录的缩略图视图,插件2显示其余部分的列表视图。

Problem: the pagination of plugin 2 (list view) points to the same page, showing both thumbs and list view. 问题:插件2(列表视图)的分页指向同一页面,同时显示大拇指和列表视图。

However, the pagination should point to plugin 3 on another page, showing a list view only (no more thumbnail view on top of the page). 但是,分页应指向另一页上的插件3,仅显示列表视图(页面顶部不再有缩略图视图)。

Here a picture: 这是一张图片:

在此输入图像描述

I can't figure out how to implement this. 我无法弄清楚如何实现这一点。 I am not sure if this is even possible at all. 我不确定这是否可能。

My first concern would be: pagination needs a constant number of items. 我的第一个问题是:分页需要一定数量的项目。 do you have the same number of items on the first page than on the other? 你在第一页上的项目数是否与在另一页上相同? if you add pagination the first plugin would use a pagelength of 6, the pagination of the second plugin eg of 4 and the third plugin maybe of 10. 如果你添加分页,第一个插件将使用6的页面长度,第二个插件的分页例如4和第三个插件可能是10。

The second problem would be: the pagination VH generates links to the same page, you need to generate links by your own: use the other page-id and add a page offset. 第二个问题是:分页VH生成指向同一页面的链接,您需要自己生成链接:使用其他页面ID并添加页面偏移量。

Maybe you can use a static link ('more news') on the first page which just links to the second page of the complete list on the other page. 也许你可以在第一页上使用静态链接(“更多新闻”),它只链接到另一页上完整列表的第二页。
This also avoids having special handling for links to the first news on the first page. 这也避免了对第一页上第一条新闻的链接的特殊处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM