1 john Sep 19, 2007 23:39
3 laibcoms Sep 20, 2007 17:11
Yep, looking for that myself..
4 yabba Sep 21, 2007 09:57
If you check the params for the function you can do something like this :
<?php
// Links to list pages:
if( isset($MainList) ) $MainList->page_links( '<div class="navigation">', '</div>', '#', '#', array( 'list_span' => 5 ) );
?>
¥
5 john Sep 21, 2007 10:08
Thanks again ¥åßßå, great advice and as usual, at the right price :)
6 john Sep 21, 2007 10:21
Didn't want to play nicely at all.....
Warning: array_merge(): Argument #2 is not an array in /home/blahblahr/inc/items/model/_itemlistlight.class.php on line 1441
7 yabba Sep 21, 2007 11:50
lol, oops, to much # always screws things up ;)
<?php
// Links to list pages:
if( isset($MainList) ) $MainList->page_links( '<div class="navigation">', '</div>', '#', array( 'list_span' => 5 ) );
?>
¥
8 john Oct 14, 2007 01:57
@ ¥åßßå
With the new 2.0.2 this is once again giving me grief...
mainlist_page_links( array(
'block_start' = > '<p class="center">'.T_('Pages:').' <strong>',
'block_end' = > '</strong></p>',
) );
I've buggered around with it and failed.....
How do I get it to once again 'list_span' only 5 pages
9 yabba Oct 15, 2007 17:56
Hi John,
Sorry, I've been a smidge snowed under converting my tacky lil pad I totally missed this :oops:
Urm, totally untested ( I haven't even looked at the code :p ), it looks like you should now do :
mainlist_page_links( array(
'block_start' = > '<p class="center">'.T_('Pages:').' <strong>',
'block_end' = > '</strong></p>',
'list_span' = > 5,
) );
¥
10 john Oct 15, 2007 22:55
Thanks mate... now back to decorating your mansion.
I'll report back on the code
Works fine
Ok, styling was easy.
How do I edit the number of pages it shows before the ..... >>
It currently shows 11 and I would like to reduce this to app 4 or 5