News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Customizing the pagination (page navigation category)

Started by axdesign, June 22, 2013, 12:49:08 PM

Previous topic - Next topic

axdesign

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.

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

axdesign

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

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/