2013-12-11 62 views
-1

我有一個網站,其中進出口運行TYPO3 v 6.1流體/ EXTBASE。TYPO3分頁問題與EXT:新聞系統的關鍵:新聞VER:2.2.1

隨着擴展消息系統的關鍵:新聞版本2.2.1

我在IM問題

#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/此頁上運行得很好,那麼我已經安裝運行在我的主要Typo腳本的代碼一個額外的另一個佈局,作爲一個投資組合此頁http://codem.dk/oevelser/其運行上運行,但我想顯示9個項目,然後我就可以在「最大記錄/頁」的頁面插件,將其設置爲9,然後將其顯示所有4 itams在頁面上,但PAGINATE仍表現爲,如果有2頁,我怎麼能安裝操作系統時,作爲現在工作的BLOG -page然後oevelser(演習)頁面上顯示其9,如果< 9則不會像現在顯示PAGINATE。

我試圖Typo腳本移動到TS頁面配置了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 
     } 
     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佈局我做AF:如果f:那麼f:別人使用listDrill og列表。

它的正常工作。