Successfully reported this slideshow.
Your SlideShare is downloading. ×

Mee & EE: Sitting In A Tree

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Add Some Awesome-Sauce
Add Some Awesome-Sauce
Loading in …3
×

Check these out next

1 of 40 Ad

More Related Content

Similar to Mee & EE: Sitting In A Tree (20)

Advertisement

Mee & EE: Sitting In A Tree

  1. 1. GRILLED CHEESE TO PERFECTION arnold | inuyaki
  2. 2. MEE & EE: SITTING IN A TREE Trevor Davis 4.22.2011
  3. 3. 4 IMPORTANT PIECES TO EE ‣ Custom Fields ‣ Channels ‣ Templates ‣ Tags
  4. 4. OK DEVS, DON'T KILL ME...
  5. 5. EE SORTA HAS MVC PROPERTIES ‣ Models == Custom Fields & Channels ‣ Views == Templates ‣ Controllers == Templates
  6. 6. CUSTOM FIELDS
  7. 7. CUSTOM FIELDS ‣ Part of a field group
  8. 8. MANY FIELDTYPES ‣ Checkboxes ‣ Date ‣ File ‣ Relationship ‣ Multi-select ‣ Text input ‣ Select ‣ Textarea ‣ Radio buttons ‣ Create your own
  9. 9. CHANNELS
  10. 10. CHANNELS ‣ Think of them as content types ‣ Ex: News, Events, Athletes, etc. ‣ Contains field group with custom fields ‣ Categories
  11. 11. TEMPLATES
  12. 12. TEMPLATES ‣ What actually gets rendered ‣ Template groups ‣ /template_group/template ‣ /blog/index ‣ Saved as files
  13. 13. TEMPLATE MANAGER
  14. 14. URL SEGMENTS
  15. 15. BEST THING EVER /blog/article-name/some/nonsense segment_1 == blog segment_2 == article-name segment_3 == some segment_4 == nonsense
  16. 16. CONTROLLER-LIKE TEMPLATES {if segment_2 == ''} //Render something {if:elseif segment_2 == 'category'} //Render a different thing {if:else} //Render something else {/if}
  17. 17. EMBEDDED TEMPLATES
  18. 18. ‘PARTIALS’ ‣ Repeatable pieces of content or functionality ‣ Pass parameters ‣ Function-like
  19. 19. EMBED CODE {embed="template_group/template"} {embed="template_group/template" channel="work"} {embed:channel}
  20. 20. TAGS
  21. 21. CHANNEL ENTRIES TAG {exp:channel:entries} ... {/exp:channel:entries}
  22. 22. PARAMETERS ‣ channel ‣ category ‣ orderby ‣ year ‣ limit ‣ many more...
  23. 23. WITH PARAMETERS {exp:channel:entries channel="work" orderby="title" limit="3"} ... {/exp:channel:entries}
  24. 24. VARIABLES
  25. 25. SINGLE VARIABLES ‣ author ‣ entry_date ‣ title ‣ url_title ‣ many more...
  26. 26. WITH SINGLE VARIABLES {exp:channel:entries channel="work"} <h2>{title}</h2> {general_body} {/exp:channel:entries}
  27. 27. WITH VARIABLE PAIRS {exp:channel:entries channel="work" limit="1"} {categories backspace="2"} {category_name}, {/categories} {/exp:channel:entries}
  28. 28. ADD-ONS
  29. 29. ADD-ON TYPES ‣ Fieldtypes ‣ Plugins ‣ Extensions ‣ Modules ‣ Accessories
  30. 30. PLUGINS {exp:ce_img:pair src="{image}" max_width="200"} <img src="{made}" alt="" width="{width}" height="{height}" /> {/exp:ce_img:pair}
  31. 31. EXTENSIONS
  32. 32. MODULES {exp:freeform:form required="name"} <p>Name: <input type="text" name="name" /></p> <p>Email: <input type="text" name="email" /></p> <p><input type="submit" name="submit" value="Submit" /></p> {/exp:freeform:form}
  33. 33. ACCESSORIES
  34. 34. THE BEST PART...
  35. 35. EE PUNS THAT MAKE BLAIR CRINGE ‣ Hon-ee Pot Captcha ‣ Repeet ‣ Freebie ‣ Shortee ‣ CSVee ‣ MD Dulee Noted
  36. 36. HAVE A HAPPEE DAY!

×