【问题标题】:TYPO3 Paginate issue with EXT: News System KEY: news VER: 2.2.1TYPO3 分页问题与 EXT:新闻系统 KEY:新闻版本:2.2.1
【发布时间】:2013-12-11 13:44:34
【问题描述】:

我有一个站点,我在其中运行 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 个 itam,但分页仍然显示为好像有 2 个页面,我如何设置操作系统它现在在 BLOG 页面上工作然后在 oevelser (drills) 页面上显示 9,如果

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

【问题讨论】:

    标签: typo3 typoscript typo3-6.1.x


    【解决方案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 并在分页布局的设置中我做了一个 f:if f:then f:else 来使用 listDrill og list。

    一切正常。

    【讨论】:

      猜你喜欢
      • 2013-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多