Hi
I think i have fix the issue.
I added this to the TYPOSCRIPT file.
#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
}
}
and then i told the news script list.html to use the paginate to use settings.listDrill.paginate and in the setup for the paginate layout i made a f:if f:then f:else for using listDrill og list.
It's working fine.