Jump to content
shopbebe

erlp modify plblog admin pagination

Recommended Posts

Hi. I installed plblog module on ps 1.4 and in the back office pagination for the blog posts doesn't work. Could someone help me dipsplay all posts instead the display by page? Or any other solution to make it work?

 

The file to modify I suppose it should be:

 
<?php
/*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

class AdminAddonsCatalog extends AdminTab
{
public function display()    {        global $currentIndex, $cookie;        if (((Tools::isSubmit('submitAddcategory') OR Tools::isSubmit('submitAddcategoryAndStay')) AND sizeof($this->adminCategories->_errors)) OR isset($_GET['updatecategory']) OR isset($_GET['addcategory']))        {            $this->adminCategories->displayForm($this->token);            echo '

<a >token.'"><img src="../img/admin/arrow2.gif"> '.$this->l('Back to list').'</a>
';        }        elseif ((Tools::isSubmit('submitAddproduct') AND sizeof($this->adminProducts->_errors)) OR Tools::isSubmit('updateproduct') OR Tools::isSubmit('addproduct'))        {            $this->adminProducts->displayForm($this->token);            echo '

<a >token.'"><img src="../img/admin/arrow2.gif"> '.$this->l('Back to list').'</a>
';        }        elseif (isset($_GET['attributegenerator']))            $this->attributeGenerator->displayForm();        elseif (isset($_GET['imageresize']))            $this->imageResize->displayForm();        elseif (!isset($_GET['editImage']))        {            $id_category = intval(Tools::getValue('id_category'));            if (!$id_category)                $id_category = 1;            $currentIndex .= '&id;_category='.$id_category.'&token;='.$this->token;                        if ($cookie->profile != 3) {                        echo '<div class="cat_bar"><span style="color: #3C8534;">'.$this->l('Current category').' :</span>   '.getPath($currentIndex, $id_category).'</div>';            echo '<h2>'.$this->l('Categories').'</h2>';            $this->adminCategories->display($this->token);                        };                        echo '<div style="margin:10px"> </div>';            echo '<h2>'.$this->l('Products in this category').'</h2>';            $this->adminProducts->display($this->token);        }    }
Edited by shopbebe (see edit history)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More