Pagination formatting


(Greg Kirk) #1

Hi there,

 

Is it possible to wrap the output of the %page_list% keyword in an li tag? 

 

I'm trying to create pagination links in the following format:

 

<nav>
 <ul class="pagination">
  <li><a href="%previous_page_href%">Previous</a></li>
  %page_list%
   <li><a href="%next_page_href%">Next</a></li>
 </ul>
</nav>
  

 

  

Thanks.


(Bart Banda) #2

You can control the format of each page link on the details screen of the listing asset in the Page Link Format field, the default format is <a href="%page_link%">%page_number%</a> so you can easily put an <li> tag around it there. 


(Greg Kirk) #3

Perfect thank you.