Mee & EE: Sitting In A Tree

  • View
    2.284

  • Download
    2

  • Category

    Design

Preview:

DESCRIPTION

ExpressionEngine intro given internally.

Citation preview

GRILLED CHEESETO PERFECTION

arnold | inuyaki

MEE & EE:SITTING IN A TREE

Trevor Davis4.22.2011

4 IMPORTANT PIECES TO EE‣ Custom Fields

‣ Channels

‣ Templates

‣ Tags

OK DEVS, DON'T KILL ME...

EE SORTA HAS MVC PROPERTIES‣ Models == Custom Fields & Channels

‣ Views == Templates

‣ Controllers == Templates

CUSTOM FIELDS

CUSTOM FIELDS‣ Part of a field group

MANY FIELDTYPES‣ Checkboxes

‣ File

‣ Multi-select

‣ Select

‣ Radio buttons

‣ Date

‣ Relationship

‣ Text input

‣ Textarea

‣ Create your own

CHANNELS

CHANNELS‣ Think of them as content types

‣ Ex: News, Events, Athletes, etc.

‣ Contains field group with custom fields

‣ Categories

TEMPLATES

TEMPLATES‣ What actually gets rendered

‣ Template groups

‣ /template_group/template

‣ /blog/index

‣ Saved as files

TEMPLATE MANAGER

URL SEGMENTS

BEST THING EVER/blog/article-name/some/nonsense

segment_1 == blog

segment_2 == article-name

segment_3 == some

segment_4 == nonsense

CONTROLLER-LIKE TEMPLATES{if segment_2 == ''} //Render something{if:elseif segment_2 == 'category'} //Render a different thing{if:else} //Render something else{/if}

EMBEDDED TEMPLATES

‘PARTIALS’‣ Repeatable pieces of content or functionality

‣ Pass parameters

‣ Function-like

EMBED CODE{embed="template_group/template"}

{embed="template_group/template" channel="work"}

{embed:channel}

TAGS

CHANNEL ENTRIES TAG{exp:channel:entries} ...{/exp:channel:entries}

PARAMETERS‣ channel

‣ category

‣ orderby

‣ year

‣ limit

‣ many more...

WITH PARAMETERS{exp:channel:entries channel="work" orderby="title" limit="3"} ...{/exp:channel:entries}

VARIABLES

SINGLE VARIABLES‣ author

‣ entry_date

‣ title

‣ url_title

‣ many more...

WITH SINGLE VARIABLES{exp:channel:entries channel="work"}

<h2>{title}</h2> {general_body}

{/exp:channel:entries}

WITH VARIABLE PAIRS{exp:channel:entries channel="work" limit="1"}

{categories backspace="2"} {category_name}, {/categories}

{/exp:channel:entries}

ADD-ONS

ADD-ON TYPES‣ Fieldtypes

‣ Plugins

‣ Extensions

‣ Modules

‣ Accessories

PLUGINS{exp:ce_img:pair src="{image}" max_width="200"} <img src="{made}" alt="" width="{width}" height="{height}" />

{/exp:ce_img:pair}

EXTENSIONS

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}

ACCESSORIES

THE BEST PART...

EE PUNS THAT MAKE BLAIR CRINGE‣ Hon-ee Pot Captcha

‣ Repeet

‣ Freebie

‣ Shortee

‣ CSVee

‣ MD Dulee Noted

HAVE A HAPPEE DAY!

Recommended