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

Why you should use ExpressionEngine

Avatar for bkorte bkorte
November 06, 2011

Why you should use ExpressionEngine

A talk I gave at Barcamp Saskatoon 2011.

Shoot me an email ([email protected]) or comment if you have any questions!

Avatar for bkorte

bkorte

November 06, 2011
Tweet

Other Decks in Programming

Transcript

  1. Who the hell are you? •Contract designer-developer •Mostly a front-end

    guy •Hates smelly code •Likes clean & simple
  2. Basic EE Work ow 1. Create channels for each type

    of content (products, news, etc) 2. Create custom fields for each channel 3. Enter Content 4. Build templates for each channel
  3. Add-Ons Anatomy of a Plugin Front end: {exp:plugin_name variable="value"} In

    pi.plugin_name.php: Class plugin_name { function plugin_name() { ... } }
  4. Add-Ons Modules •Most advanced type of add-on •Has views, admin

    class, front- end class, language file •Uses CodeIgniter classes
  5. Add-Ons Module Admin Class Example Class module_name { function index()

    { $total = $this->EE->db->count_all($this->table); $query = $this->EE->db->get('table_name'); return $this->EE->load->view('index', $vars, TRUE); } ... more functions for each action }
  6. Add-Ons Extensions • Like plugins, but for control panel •

    Uses hooks to alter functionality • Multiple extensions can use the same hook
  7. Add-Ons Field Types • Most common add-on type • Add

    functionality to entry administration
  8. Matrix - Field Type, $55 {exp:channel:entries channel="products"} <h1>{title}</h1} {product_trims} <p>Name:

    {trim_name}</p> <p>Dimensions: {trim_dimensions}</p> <p>Thickness: {trim_thickness}</p> <p>Weight: {trim_weight}</p> {/product_trims} {/exp:channel:entries}