Posted By

ryarwood on 01/30/12


Tagged

index ee pagination news ExpressionEngine listing


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hamishh


EE News Index Page


 / Published in: PHP
 

  1. {embed="includes/header"}
  2.  
  3. {embed="includes/header-side"}
  4.  
  5. {embed="includes/navigation"}
  6.  
  7. <div id="standardContentHolder">
  8.  
  9. <div id="globalSidebar" class="blogNav">
  10. <h2>News</h2>
  11. <h3>Categories</h3>
  12. <ul>
  13. <li><a href="/news/">All</a></li>
  14. {exp:channel:categories show_empty="yes" channel="news" style="linear"}
  15. <li><a href="{path="news/archive"}">{category_name}</a></li>
  16. {/exp:channel:categories}
  17. </ul>
  18. <h3>Lastest Posts</h3>
  19. <ul>
  20. {exp:channel:entries channel="news" dynamic="no" limit="5" paginate="bottom"}
  21. <li><a href="{title_permalink="news/post"}">{title}</a></li>
  22. {/exp:channel:entries}
  23. </ul>
  24. <h3>Monthly Archives</h3>
  25. <ul>
  26. {exp:channel:month_links channel="news" limit="50"}
  27. <li><a href="{path="news/archive"}">{month} {year}</a></li>
  28. {/exp:channel:month_links}
  29. </ul>
  30. </div>
  31.  
  32. <div id="globalContent">
  33.  
  34. {exp:channel:entries channel="news" dynamic="no" limit="5" paginate="bottom"}
  35.  
  36. <div class="blogPost">
  37.  
  38. {if news_video == ""}
  39. <p><img src="{news_photo}" /></p>
  40. {/if}
  41.  
  42. {if news_video != ""}
  43. <iframe width="640" height="480" src="http://www.youtube-nocookie.com/embed/{news_video}?rel=0" frameborder="0" allowfullscreen style="margin-bottom: 15px;"></iframe>
  44. {/if}
  45.  
  46. <h2>{title}</h2>
  47. <h3>{entry_date format="%m.%d.%y"}</h3>
  48. {blog_short_story}
  49.  
  50. <span class="rightNewsLink">
  51. {if blog_download != ""}
  52. <p><a href="{blog_download}">Download PDF</a></p>
  53. {/if}
  54. {if blog_link != ""}
  55. <p><a href="{blog_link}">Read Online</a></p>
  56. {/if}
  57. {if blog_long_story != "" AND blog_link == "" AND blog_download == ""}
  58. <p><a href="{title_permalink="news/post"}">Read More</a></p>
  59. {/if}
  60. </span>
  61.  
  62. </div>
  63.  
  64. {paginate}
  65.  
  66. <div id="blogPaginate">
  67. {if previous_page}<a href="{auto_path}" id="blogPrev">Previous</a>{/if}
  68. {if next_page}<a href="{auto_path}" id="blogNext">View More</a>{/if}
  69. </div>
  70.  
  71. {/paginate}
  72.  
  73. {/exp:channel:entries}
  74.  
  75. </div>
  76.  
  77. </div>
  78.  
  79. {embed="includes/footer"}
  80.  
  81. <script type="text/javascript" src="/includes/js-minimum.js"></script>
  82.  
  83. {embed="includes/boot"}

Report this snippet  

You need to login to post a comment.