[TYPO3-mvc] filter and pagination views of own extension really slow
Philipp Wrann
philippwrann at gmail.com
Tue Apr 8 08:30:50 CEST 2014
Concerning the pagination... got a few generic solutions on that (that would have effect in all paginations)
1) replace template / partial / layoutpaths for the widget paginator. Then check for the pages count, if its < 2 dont display anything
2) hide useless paginations with javascript
jQuery('.f3-widget-paginator').each(function(i,value){if (jQuery('li',value).size()<2) jQuery(value).hide()}));
3) add a data attribute to the pagination-container, containing the number of links and hide it with css
f3-widget-paginator[data-number-of-link="1"] { display:none}
More information about the TYPO3-project-typo3v4mvc
mailing list