Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1690

Templates for Joomla! 5.x • Re: Override pagination to show fewer page links

$
0
0
carlitorweb - Thank you for confirming that this is not possible. I would love to have this as a feature in the settings. Right now 10 pages it too many pages to display on mobile views and the pagination folds under itself.

SharkyKZ - I tried following along with your suggestion but it doesn't seem to work? I tried to add the line of code in several places in the links.php file and it doesn't do anything. It also seems like this may be the wrong file because the classes on the <ul> are not right. It looks like the code I need to edit is in the list.php file. I think I need to override lines 23-25, here is that code

<?php foreach ($list['pages'] as $page) : ?>
<?php echo $page['data']; ?>
<?php endforeach; ?>

What I think I'd need to override is the foreach loop so that it only runs a certain amount of times? But I have no idea how to do this.

Statistics: Posted by ericuhl — Mon May 13, 2024 8:41 pm



Viewing all articles
Browse latest Browse all 1690

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>