-1

我有一个站点,我在其中运行 TYPO3 v. 6.1 FLUID/EXTBASE。

使用扩展新闻系统密钥:新闻版本 2.2.1

我的问题在于我在我的主要 Typoscript 上运行此代码

#Paginate setup fir our list.html
plugin.tx_news {
        view {
            widget.Tx_News_ViewHelpers_Widget_PaginateViewHelper.templateRootPath = fileadmin/templates/ext/news/Templates/
        }
        settings.list.paginate {
            #Do not set the "max records displayed" in the flexform of the plugin, the pagination will disappears
            itemsPerPage = 3
            insertAbove = false
            insertBelow = TRUE
            lessPages = TRUE
            forcedNumberOfLinks = 5
            pagesBefore = 2
            pagesAfter = 2
        }
}

它在这个页面上运行良好http://codem.dk/blog/然后我设置了一个额外的布局,在这个页面上作为一个投资组合运行http://codem.dk/oevelser/它正在运行,但我想显示9个项目,然后我可以在“Max Records / Page”中的页面插件上将其设置为9,然后在页面上显示所有4个项目,但分页仍然显示为好像有2个页面,我该怎么办setup os 它现在在 BLOG 页面上工作,然后在 oevelser (drills) 页面上显示 9,如果 <9 那么它不会像现在一样显示分页。

我试图将 Typoscript 移动到 2 页的 TS Page 配置,但它不起作用。

4

1 回答 1

-1

你好

我想我已经解决了这个问题。

我将此添加到 TYPOSCRIPT 文件中。

#Paginate setup fir our list.html
plugin.tx_news {
        view {
            widget.Tx_News_ViewHelpers_Widget_PaginateViewHelper.templateRootPath = fileadmin/templates/ext/news/Templates/
        }
        settings.list.paginate {
            #Do not set the "max records displayed" in the flexform of the plugin, the pagination will disappears
            itemsPerPage = 3
            insertAbove = false
            insertBelow = TRUE
            lessPages = TRUE
            forcedNumberOfLinks = 5
            pagesBefore = 2
            pagesAfter = 2
        }
        settings.listDrill.paginate {
            #Do not set the "max records displayed" in the flexform of the plugin, the pagination will disappears
            itemsPerPage = 9
            insertAbove = false
            insertBelow = TRUE
            lessPages = TRUE
            forcedNumberOfLinks = 5
            pagesBefore = 2
            pagesAfter = 2
        }
}

然后我告诉新闻脚本 list.html 使用分页来使用 settings.listDrill.paginate 并在分页布局的设置中我使用 af:if f:then f:else 使用 listDrill og 列表。

它工作正常。

于 2013-12-12T10:44:23.583 回答