Posted By

ryarwood on 01/30/12


Tagged

pagination news ExpressionEngine


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hamishh


EE News w/ Pagination


 / Published in: PHP
 

  1. {exp:channel:entries channel="blog" dynamic="no" limit="9" paginate="bottom"}
  2.  
  3. <div class="blogListing">
  4. <a href="{title_permalink="blog/post"}"><img src="{if "{blog-thumbnail}" == ""}/images/site/news-fpo.gif{if:else}{blog-thumbnail}{/if}" width="230" height="225" /></a>
  5. <h3>{entry_date format="%m.%d.%y"} &nbsp; | &nbsp; Published by: {blog-author}</h3>
  6. <h2>{title}</h2>
  7. <p>{blog-caption} <span class="blogMore"><a href="{title_permalink="blog/post"}">...More</a></span></p>
  8. </div>
  9.  
  10. {paginate}
  11.  
  12. <div id="blogPaginate">
  13. {if previous_page}<a href="{auto_path}" id="blogPrev">Previous</a>{/if}
  14. {if next_page}<a href="{auto_path}" id="blogNext">View More</a>{/if}
  15. </div>
  16.  
  17. {/paginate}
  18.  
  19. {/exp:channel:entries}

Report this snippet  

You need to login to post a comment.