TYT3 Paginate与EXT的问题:新闻系统KEY:新闻VER:2.2.1

时间:2013-12-11 13:44:35

标签: typo3 typoscript typo3-6.1.x

我有一个网站,我正在运行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个itams,但是分页仍然显示为好像有2个页面,我怎样才能设置os它现在可以工作BLOG页面,然后在oevelser(钻头)页面上显示9,如果< 9那么它现在不显示分页。

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

1 个答案:

答案 0 :(得分:-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使用paginate来使用settings.listDrill.paginate并在我创建的paginate布局的设置中:if f:then f:else for listDrill og list。< / p>

工作正常。

相关问题