Recent Topics

1 Feb 17, 2008 15:33    

My b2evolution Version: 2.4.

Hello.

I am using b2evolution 2.4 with evoskin. I have two colums where diferent posts are showed filtered by main_cat_ID.

First columm:
while( $Item = & mainlist_get_item() )
if ($Item->main_cat_ID= 33) ... show list

Second column:
while( $Item = & mainlist_get_item() )
if ($Item->main_cat_ID= 34) ... show list

'mainlist_get_item' call '$MainList->get_item()' in 'core inc\_core\_template.funcs.php' which tells me that the lists of the post are the same in both colunms because I am taking the posts from the same $MainList.

But what I want is two diferent Lists of posts. How can I initialize two diferent $MainList in my skins working separatly?
How can I have different pagination in these two colums?

2 Feb 18, 2008 00:09

Take a look at /multiblog.php it uses a new $MainList for each blog it shows, you just need to amend the code to also limit the entries per category ( rather than use the filtering you're currently using ).

Having different paging per list would be a fair bitch to achieve

¥


Form is loading...