Posted By

ryarwood on 10/06/11


Tagged

query ExpressionEngine channel


Versions (?)

EE Misc Query Examples


 / Published in: PHP
 

  1. //non dynamic, looking for category number
  2. {exp:channel:entries channel="ad-snipes" dynamic="no" category="42"}
  3. <a href="{ad-link}"><img src="{ad-image}" width="210" height="133" alt="{title}"></a>
  4. {/exp:channel:entries}
  5.  
  6. //non dynamic, setting sort order
  7. {exp:channel:entries channel="personnel" dynamic="no" orderby="sort-order" sort="asc"}
  8. <li><a href="{title_permalink="the-team/profile"}">{title} - {name-title}</a></li>
  9. {/exp:channel:entries}
  10.  
  11. // non dynamic looking for url title
  12. {exp:channel:entries channel="static-pages" dynamic="no" url_title="about-us"}
  13. {static-page-content}
  14. {/exp:channel:entries}
  15.  
  16. // dynamic (who cares) using DISABLE!
  17. {exp:channel:entries disable="categories|category_fields|custom_fields|member_data|pagination"}
  18. <a href="{title_permalink='channel/comments'}">{title}</a><br />
  19. {/exp:channel:entries}
  20.  
  21. // dynamic (who cares) using DISABLE configured for ME!
  22. {exp:channel:entries disable="category_fields|member_data|pagination"}
  23. <a href="{title_permalink='channel/comments'}">{title}</a><br />
  24. {/exp:channel:entries}

Report this snippet  

You need to login to post a comment.