Pagination error on Sites module by Category

Hi, if you go to the Sites module and select a category from the Categories page, you get a list of sites within that category.

But, if you navigate to the next page, the category is forgotten.

I have some categories with many sites and it's impossible to page through all of them.

My site is www.connectmining.com and the Sites module is under the "More" menu

 

Does anybody know a way around this?

 Thanks,

Mark

Quote · 6 Sep 2012

Hello Mark

Looks like it's a bug. Try to edit modules/boonex/sites/classes/BxSitesSearchResult.php file, find the following code

 

case 'category':
                $sCategory = uri2title($sValue);
                $this->aCurrent['restriction']['category']['value'] = $sCategory;
                $this->aCurrent['title'] = _t('_bx_sites_caption_browse_by_category') . ' ' . $sCategory;
                $GLOBALS['oTopMenu']->setCustomSubHeader(_t('_bx_sites_caption_browse_by_category') . ' ' . $sCategory);
                $this->sSitesBrowseUrl = 'browse/category';
                break;

and replace  the line

$this->sSitesBrowseUrl = 'browse/category';

with  

$this->sSitesBrowseUrl = 'browse/category/' . $sValue . '/';

I think it should help. :)

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 6 Sep 2012

Brilliant!

 

That worked like a dream.

 

Thanks Anton

Quote · 9 Sep 2012

Incidentally Anton, I don't suppose you'd have the answer to this pagination issue would you?

 

http://www.boonex.com/forums/?action=goto&my_threads=1#topic/Pagination-error-in-Articles-module.htm

 

Mark

Quote · 9 Sep 2012

 Hello

Brilliant!

 

That worked like a dream.

 

Thanks Anton

 Was glad to help you. :)

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 10 Sep 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.