ExpressiQnEngine

CMS of the future,  nbw .
' What is iExpressionEngine’? 

*Content management
‘Member and registration system
«Development framework
‘ Separation of Concerns

*Weblogs contain data
-~Temp| ates control what data is
-loaded and how it is viewed

- *Custom ...
EE Data . 
-All data is stored in weblogs
(except member into) . 

--Weblog = = database table (sort of)
- -Weblogs a. k.a...
LEE Data

Weblogs have three fields by default: 
-*Title - user friendly name of the

«URL Title - "slug'_' used in the UR...
5EE Custom Fields

-All other fields‘ in a weblog are
called Custom Fields . 

--Custom fields have a Field Type
EE Custom Fields
Built in Field Types:
EE Custom Fields
Additional Field Types:
Custom Field Group

tA| l custom fields are defined in
Custom Field Groups

-~rEach weblog can have exactly one
« Custom F...
Custom Field Group

-Prefix field name w/  field group
-"article" group has "article_body"

--"recipe" group has "recipe_b...
A Gypsy _

tGypsy fields can be defined
directly on any number of weblogs

«Only used for things that are on
- almost all ...
(EE’URLs_ .  A

«URLs consist of "URL segments"
-http: //nerdery. com/ article/ detail/1

«The first two segments are

(us...
EIE Templates

«Defined in database through the
CP

«Never edit templates in the CP
.  «-‘Templates are grouped by

Templa...
EIE Templates

Basics: 
~tPlugin /  Module tags: 
- ~{exp: weblog: e_ntries}
*{exp: comments: entries}
«Variables: 
*{ur| ...
Plugin /  l/ lodule. Tag

{expzweblogzentries}

-Always« starts with exp: 
«''weblog'' is the name of the plugin

- or mod...
Plugin /  l/ lodule. Tag
{expzweblogzentries}

class Weblog { _
—function entries() {

}_. .
}
‘Plugin /  Module Params  

http: //nerdery. com/ article/ detaiI/1
{expzweblogzentries dynamic= "off"
entry_id= "{segme_n...
Categories . 
-Collections of premade labels in
Category Groups

--Any number of Category Groups
- on a weblog ‘

-Each en...
Simple Sites
-Separates content by category
-All weblogs that have site specific

content need the _Site Category
- Group ...
Simple Sites S

{sim'ple_site_id} -‘set in path. php, 
identifies which site is active

Extracted from Simple Sites _confi...
Simple Sites S

config_common. php
/ / no limits on defined vars - {simp| e_sitos_*}
$conf['simple_sites'] =  array( '
‘ac...
Simple Sites  
Get ‘5 articles from the current site: 

{expzweblogzentries dynamic= "off"
,  category= "{simple-sifes_cat...
EE Add-ons l

-Plugins - provide template tags
-Modules — provide template tags, 

-custom CP pages,  and actions
- -Exten...
Hermes . 
-The Hermes generator creates
empty classes for all of the

-available add-ons in one package -

one mod directo...
Hermes . 
-Provides enhanced MVC structure
w/  real view files

--Base classes provide utility
- functions to | oad‘settin...
Loki
-Provides easier to use styles for
use in the CP (replaces Display

- class)

-Provides base data classes for use
in ...
Upcoming SlideShare
Loading in...5
×

EE Crash Course

1,045

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,045
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

EE Crash Course

  1. 1. ExpressiQnEngine CMS of the future, nbw .
  2. 2. ' What is iExpressionEngine’? *Content management ‘Member and registration system «Development framework
  3. 3. ‘ Separation of Concerns *Weblogs contain data -~Temp| ates control what data is -loaded and how it is viewed - *Custom functionality implemented in add-ons, called by templates or hooks 2 ‘
  4. 4. EE Data . -All data is stored in weblogs (except member into) . --Weblog = = database table (sort of) - -Weblogs a. k.a. "channels" -Record in a weblog is called an entry ‘
  5. 5. LEE Data Weblogs have three fields by default: -*Title - user friendly name of the «URL Title - "slug'_' used in the URL -‘Entry ID - unique integer_identifier Example entry: *title = "About Us" ~*url_tit| e = "about-us" *entry_id = 56
  6. 6. 5EE Custom Fields -All other fields‘ in a weblog are called Custom Fields . --Custom fields have a Field Type
  7. 7. EE Custom Fields Built in Field Types:
  8. 8. EE Custom Fields Additional Field Types:
  9. 9. Custom Field Group tA| l custom fields are defined in Custom Field Groups -~rEach weblog can have exactly one « Custom Field Group assocaited with it
  10. 10. Custom Field Group -Prefix field name w/ field group -"article" group has "article_body" --"recipe" group has "recipe_body"
  11. 11. A Gypsy _ tGypsy fields can be defined directly on any number of weblogs «Only used for things that are on - almost all weblogs, perhaps fields like summary, promo_summary, promo_tit| e ‘ *Powerful, but avoid if possible
  12. 12. (EE’URLs_ . A «URLs consist of "URL segments" -http: //nerdery. com/ article/ detail/1 «The first two segments are (usually): _ ~tsegment_1: template group ~—segment_2: template name «Other segments are up to the template
  13. 13. EIE Templates «Defined in database through the CP «Never edit templates in the CP . «-‘Templates are grouped by Template Groups
  14. 14. EIE Templates Basics: ~tPlugin / Module tags: - ~{exp: weblog: e_ntries} *{exp: comments: entries} «Variables: *{ur| _'tit| e} -{segment_3}
  15. 15. Plugin / l/ lodule. Tag {expzweblogzentries} -Always« starts with exp: «''weblog'' is the name of the plugin - or module A _ "entries" is the method on the class to call 2 ‘
  16. 16. Plugin / l/ lodule. Tag {expzweblogzentries} class Weblog { _ —function entries() { }_. . }
  17. 17. ‘Plugin / Module Params http: //nerdery. com/ article/ detaiI/1 {expzweblogzentries dynamic= "off" entry_id= "{segme_nt_3}"} class Weblog { function entries() { global $TMPL; $entry_id = $TMPL—>fetch_param(‘dynamic’); // does something with $entry_id 1
  18. 18. Categories . -Collections of premade labels in Category Groups --Any number of Category Groups - on a weblog ‘ -Each entry has multiple categories from it's. weblog's assigned Category Groups -We're also using tags - slightly different usage, completely freeform
  19. 19. Simple Sites -Separates content by category -All weblogs that have site specific content need the _Site Category - Group " -Active site switchesbetween sets of global vars ‘
  20. 20. Simple Sites S {sim'ple_site_id} -‘set in path. php, identifies which site is active Extracted from Simple Sites _config array: {simple_sites_name} {simple_sites_cat_id} {simple_sites_domain} {simp| e_sites_*}
  21. 21. Simple Sites S config_common. php / / no limits on defined vars - {simp| e_sitos_*} $conf['simple_sites'] = array( ' ‘active’ = ‘y’, _ _'default_site' = ~ '. .ld. ll‘l', ' 'americz . ._profile' = > array( ‘domain’ = > 'http: //americanprofi| e.com/ ', ‘name’ = > ‘American Profile’, ' 'cat_id' = > 5, ‘fruit’ = > ‘apples’, 'user_groups = > array(1)),
  22. 22. Simple Sites Get ‘5 articles from the current site: {expzweblogzentries dynamic= "off" , category= "{simple-sifes_cat_id}" | imit= "5"weblog= "articles"} ' <a href= "{simp| e_sites_dom, ain}article/ detaiI/ {urI_title}">{tit| e}</ a><br/ > {/ exp: web| og: entries}
  23. 23. EE Add-ons l -Plugins - provide template tags -Modules — provide template tags, -custom CP pages, and actions - -Extensions — modifies behavior of other add-ons or core through . hooks r ‘ -Fieldtypes - provide new Custom Field Types
  24. 24. Hermes . -The Hermes generator creates empty classes for all of the -available add-ons in one package - one mod directory and one ext stub file _ . -Always. use this unless you just need to do a very simple plugin or extension
  25. 25. Hermes . -Provides enhanced MVC structure w/ real view files --Base classes provide utility - functions to | oad‘settings, _set page titles, etc.
  26. 26. Loki -Provides easier to use styles for use in the CP (replaces Display - class) -Provides base data classes for use in custom add-ons
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×