Recent Topics

1 Sep 19, 2007 23:39    

My b2evolution Version: 2.x

What file do I go in search of if I want to edit and style the Pagination feature ?
Cheers
John

2 Sep 20, 2007 02:00

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

3 Sep 20, 2007 17:11

Yep, looking for that myself..

4 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 Sep 21, 2007 10:08

Thanks again ¥åßßå, great advice and as usual, at the right price :)

6 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 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 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 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 Oct 15, 2007 22:55

Thanks mate... now back to decorating your mansion.

I'll report back on the code

Works fine


Form is loading...