Posted By

ryarwood on 06/09/11


Tagged

query news ExpressionEngine


Versions (?)

ExpressionEngine Simple News Example


 / Published in: PHP
 

  1. {exp:channel:entries channel="news" dynamic="no"}
  2.  
  3. <div class="newsListItem">
  4. <h3>{entry_date format="%m.%d.%y"}</h3>
  5. <h2>{title}</h2>
  6. <h4>{news-source}</h4>
  7.  
  8. {if "{news-pdf}" != ""}
  9. <p><a href="{news-pdf}">Download PDF</a></p>
  10. {/if}
  11.  
  12. {if "{news-external}" != ""}
  13. <p><a href="{news-external}">Read Online</a></p>
  14. {/if}
  15.  
  16. {if "{news-article}" != ""}
  17. <p><a href="{title_permalink="about-us/news-release"}">Read More</a></p>
  18. {/if}
  19.  
  20. </div>
  21.  
  22. {/exp:channel:entries}

Report this snippet  

You need to login to post a comment.