VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: axdesign on June 22, 2013, 12:49:08 PM

Title: Customizing the pagination (page navigation category)
Post by: axdesign on June 22, 2013, 12:49:08 PM
Hi
First, sorry for my english but I'm French. I would like to customize the pagination, more simply, the numbers of the next and previous pages. For the moment I have: 1234>>End.

Here is the code which is in PHP:
<div class="width30 floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox (); ?></div>
   <div class="vm-pagination">
      <?php echo $this->vmPagination->getPagesLinks (); ?>
      <span style="float:right"><?php echo $this->vmPagination->getPagesCounter (); ?></span>
   </div>
resulting in "inspect element" :
<div class="vm-pagination">
<div class="pagination">
<strong>1</strong>
<a class="" href="/accastillage.html?start=9" title="2">2</a>
<a class="" href="/accastillage.html?start=18" title="3">3</a>
<a class="" href="/accastillage.html?start=27" title="4">4</a>
<a class="next" href="/accastillage.html?start=9" title="»">»</a>
<a class="last" href="/accastillage.html?start=27" title="Fin">Fin</a></div>
<span style="float:right">Page 1 sur 4</span></div>

I think a single class would allow me to change the css of these links, but I can not insert "class" in this PHP code. How?

Here's an idea of what I want to do :
http://www.flexiblewebdesign.com/virtuemart-2-template-lightmart/index.php?option=com_virtuemart&view=category&virtuemart_category_id=56&Itemid=556

and here is the site I want to change is :
http://www.kenkiz-marine.fr/accastillage.html

Thank you for all that you bring to me, because then I dry completely.
Title: Re: Customizing the pagination (page navigation category)
Post by: Milbo on June 22, 2013, 14:14:42 PM
Because the pagination is done by the JModel/VmModel. You can change the pagination sequence already in the config. Wait for 2.0.21G, which has custom pagination sequence per category
Title: Re: Customizing the pagination (page navigation category)
Post by: axdesign on June 22, 2013, 14:25:40 PM
Quote from: Milbo on June 22, 2013, 14:14:42 PM
Because the pagination is done by the JModel/VmModel. You can change the pagination sequence already in the config. Wait for 2.0.21G, which has custom pagination sequence per category

Thanks, but it's not the number of product per page that i want to change but it's just numbers navigation.
For exemple : 1234>>End
I want custom this number with css, but they have no class.
Look at this page http://www.flexiblewebdesign.com/virtuemart-2-template-lightmart/index.php?option=com_virtuemart&view=category&virtuemart_category_id=56&Itemid=556
Numbers are beautiful with black gradient hover.

Sorry for my english.
Thanks
Title: Re: Customizing the pagination (page navigation category)
Post by: Milbo on June 23, 2013, 10:38:46 AM
Quote from: Milbo on June 22, 2013, 14:14:42 PM
You can change the pagination sequence already in the config. Wait for 2.0.21G, which has custom pagination sequence per category