Pekka
3rd of October 2006 (Tue), 13:08
This is mainly for template designers.
Templates in EE 2 are quite simple: EE 2 provides page content without any other xhtml code than links and form items as php variables and you print them out in template page mixing html or xhtml and php to create pages for browsers.
CSS is linked or embedded (your choice). Embedded layout templates are moved to body section when page is rendered (for validator compliance).
A VERY IMPORTANT NOTICE:
Because templates can use any scripting language, as a security measure do not use templates received from unknown sites/persons without knowing exactly what they do.
EE 2 provides templates for maximum separation of content and presentation, but you can choose to use them in any way you like. Templates available are:
Global Color Stylesheet
Global Font Stylesheet
Global Stylesheet
Index Content template
Index Layout stylesheet
Photo Content template
Photo Content template for photo page slideshow
Photo Content template for unavailable photo page
Photo Layout stylesheet
Exhibition Browser Content template
Exhibition Browser Layout stylesheet
Sitemap Content template
Sitemap Layout stylesheet
News Content template
News Layout stylesheet
Comments Content template
Comments Layout stylesheet
EE Commerce Content template
EE Commerce Layout stylesheet
Guestbook Content template
Guestbook Layout stylesheet
Gear Content template
Gear Layout stylesheet
Embedded group listing in index: Content template
Embedded group listing in index: Layout stylesheet
Embedded exhibition listing in index: Content template
Embedded exhibition listing in index: Layout stylesheet
Embedded comment item: Content template
Embedded comment item: Layout stylesheet
Embedded guestbook item: Content template
Embedded comment item: Layout stylesheet
Embedded camera item: Content template
Embedded camera item: Layout stylesheet
Embedded lens item: Content template
Embedded lens item: Layout stylesheet
Embedded accessory item: Content template
Embedded accessory item: Layout stylesheet
Embedded rating item: Content template
Embedded rating item: Layout stylesheet
Embedded news item: Content template
Embedded news item: Layout stylesheet
Embedded news excerpt: Content template
Embedded news excerpt: Layout stylesheet
Comment input form: Content template
Comment input form: Layout stylesheet
Guestbook input form: Content template
Guestbook input form: Layout stylesheet
Login input form: Content template
Login input form: Layout stylesheet
Custom A content : Content template
Please note that default template is an "overkill", its goal is to have every item and item group in divs for maximum layout flexibility - you may design much simpler if required. All contributions are welcome.
In simplest form you can use
Global Stylesheet for all CSS
"Content template" templates for page layouts.
In default EE 2.0 style "Gray XHTML" all above are used so that
Global Color Stylesheet holds all color CSS
Global Font Stylesheet holds all font family and size CSS
Global Stylesheet holds header and footer CSS plus few common items
Content templates hold individual page's semantic layouts
Layout stylesheets hold CSS positioning data for respective content pages
This means, with default style:
You can change fonts without affecting anything else
You can change colors without affecting anything else
You can change layout without affecting content.
Templates in EE 2 are quite simple: EE 2 provides page content without any other xhtml code than links and form items as php variables and you print them out in template page mixing html or xhtml and php to create pages for browsers.
CSS is linked or embedded (your choice). Embedded layout templates are moved to body section when page is rendered (for validator compliance).
A VERY IMPORTANT NOTICE:
Because templates can use any scripting language, as a security measure do not use templates received from unknown sites/persons without knowing exactly what they do.
EE 2 provides templates for maximum separation of content and presentation, but you can choose to use them in any way you like. Templates available are:
Global Color Stylesheet
Global Font Stylesheet
Global Stylesheet
Index Content template
Index Layout stylesheet
Photo Content template
Photo Content template for photo page slideshow
Photo Content template for unavailable photo page
Photo Layout stylesheet
Exhibition Browser Content template
Exhibition Browser Layout stylesheet
Sitemap Content template
Sitemap Layout stylesheet
News Content template
News Layout stylesheet
Comments Content template
Comments Layout stylesheet
EE Commerce Content template
EE Commerce Layout stylesheet
Guestbook Content template
Guestbook Layout stylesheet
Gear Content template
Gear Layout stylesheet
Embedded group listing in index: Content template
Embedded group listing in index: Layout stylesheet
Embedded exhibition listing in index: Content template
Embedded exhibition listing in index: Layout stylesheet
Embedded comment item: Content template
Embedded comment item: Layout stylesheet
Embedded guestbook item: Content template
Embedded comment item: Layout stylesheet
Embedded camera item: Content template
Embedded camera item: Layout stylesheet
Embedded lens item: Content template
Embedded lens item: Layout stylesheet
Embedded accessory item: Content template
Embedded accessory item: Layout stylesheet
Embedded rating item: Content template
Embedded rating item: Layout stylesheet
Embedded news item: Content template
Embedded news item: Layout stylesheet
Embedded news excerpt: Content template
Embedded news excerpt: Layout stylesheet
Comment input form: Content template
Comment input form: Layout stylesheet
Guestbook input form: Content template
Guestbook input form: Layout stylesheet
Login input form: Content template
Login input form: Layout stylesheet
Custom A content : Content template
Please note that default template is an "overkill", its goal is to have every item and item group in divs for maximum layout flexibility - you may design much simpler if required. All contributions are welcome.
In simplest form you can use
Global Stylesheet for all CSS
"Content template" templates for page layouts.
In default EE 2.0 style "Gray XHTML" all above are used so that
Global Color Stylesheet holds all color CSS
Global Font Stylesheet holds all font family and size CSS
Global Stylesheet holds header and footer CSS plus few common items
Content templates hold individual page's semantic layouts
Layout stylesheets hold CSS positioning data for respective content pages
This means, with default style:
You can change fonts without affecting anything else
You can change colors without affecting anything else
You can change layout without affecting content.