Upgrade to Pro — share decks privately, control downloads, hide ads and more …

EECI

Avatar for Kelly Cook Kelly Cook
October 31, 2012

 EECI

Key takeaways from EECI.

Avatar for Kelly Cook

Kelly Cook

October 31, 2012
Tweet

Other Decks in Technology

Transcript

  1. How to Make EE Not Suck   Site Manager*  

    Switchee   Stash   Snippet Sync   Updater   Focus Lab Master Config   Get rid of MSM
  2. Site Manager – Overview   Developed by Christopher Imrie (MoreSoda).

      Currently in Alpha (we should not use this in Production).*   Compare any two environments.   Synchronize data and settings between environments.   Future roadmap includes more in-depth testing, bug fixes, entry migration, styling improvements.   Demo
  3. Site Manager – How it Works   Two EE modules

    (client and server)   Install the Site Manager Client module in the site you wish to use as the central point to manage your sites.   Install the Site Manager Server module in each site you wish to manage remotely.   Powered by RequireJS (RequireJS-for-EE extension)   Super Admins only   AES (Advanced Encryption Standard) encrypted communication
  4. Switchee   With EEs if/else conditionals, each condition is parsed

    before being removed at the end of the template parsing process. This means if you wrap if/else tags around lots of other tags then your template will be running many unnecessary queries and functions.   Switchee ensures unmatched conditions are removed from the template before they can be parsed.   Switchee allows you to use regular expressions to perform advanced matching on case conditions. Like PHPs switch/case, Switchee supports a default value.   Free and highly recommended by EE community.
  5. Simple Conditionals   Parsed before any module or plugin tags

      EE considers a conditional to be “Simple” if and only if:   it contains no if/else sort of logic switching   it does not use AND, OR, etc operators   it ONLY works with segment, embed, or global variables
  6. Complex Conditionals   Parsed later, after things like module or

    plugin tags.   Entire conditional will be parsed, but only the matching rule will be outputted/displayed.
  7. Conditionals: Recommendations   Convert complex conditionals to simple conditionals where

    applicable.*   Install and implement Switchee.*   Use conditionals wisely - only use complex conditionals when you can not use a simple conditional. *Benchmark, apply changes to ONE template, benchmark.
  8. Stash   Very handy for reusing data in templates.  

    Stash allows you to stash text and snippets of code for reuse throughout your templates.   Free and highly recommended by EllisLab and the EE community.
  9. Snippet Sync   Lets you manage all your snippets on

    the file system just like a normal template.   $8, recommended by EE community, developed by Brian Litizinger (Nerdery).
  10. Snippets? Snippets!   Snippets are small bits of reusable template

    or tag parts.   Can hold dynamic content: EE tags, PHP, variables, etc.   Included in the parent template early in the parse order.   Do not have the overhead of embedding a template.
  11. Snippet vs. Embedded Template   Embedded templates have their own

    preferences (caching, PHP parsing, access, etc.), and are parsed individually.   Embedded templates are not included in the parent template, but rather added to them after the fact, using a separate query and full page parsing resources for each template.
  12. Snippet vs. Global Variable   User-defined Global Variables are expanded

    at the very end of all template parsing, and should be used for static content that would not affect other tags and variables on the template.   Example: Copyright info
  13. Updater   Auto update EE 2.2+.   Auto update compatible

    add-ons.   Backup database.   Backup files.   Visual update process.   $15.00 and highly recommended by EllisLab and EE community.
  14. Focus Lab Master Config   Multi environment setup for EE2.

      Deploy sites to any server with minimal changes or updates to any code or settings.   Free and highly recommended by EllisLab.   Never use Deeploy Helper again!
  15. Recommendations   Update ExpressionEngine and all add-ons.   Remove unused

    add-ons, templates, and content.   Snippets instead of embedded templates where applicable.   Implement Focuslab Master Config.   Break sites out of MSM (except AA mobile).
  16. Steps for Abandoning MSM   Complete recommendations on previous slide.

      Create repos for NCA and PFS.   Add copy of ADVA EE installation to each repo.   Create database for NCA and PFS.   Remove NCA and PFS from ADVA, remove NCA and ADVA from PFS, remove ADVA and PFS from NCA.   Change site IDS for each site to 1.   Steps outlined in this article.