23
Developing Joomla 1.6 Templates Chad Windnagle twitter.com/@drmmr763 [email protected]t

Developing joomla 1.6 templates

Embed Size (px)

DESCRIPTION

This is a presentation I gave on Joomla 1.6 template development for JoomlaDay DC 2010

Citation preview

Page 1: Developing joomla 1.6 templates

Developing Joomla 1.6 Templates

Chad Windnagletwitter.com/@drmmr763

[email protected]

Page 2: Developing joomla 1.6 templates

The Big Question:

Do

Joomla! 1.5 Templates

=

Joomla! 1.6 Templates

???

Page 3: Developing joomla 1.6 templates

The Big Answer:

No. But almost!

Page 4: Developing joomla 1.6 templates

Few Differences:

Minor Code ChangesNew 1.6 Feature: Template StylesAdvanced Style ACL

Page 5: Developing joomla 1.6 templates

Few Differences:

Minor Modifications to templateDetails.xml

Add DocType DefinitionUpdate install version number to 1.6Optional: Template configuration

params (fieldsets - saved in params.ini)

Page 6: Developing joomla 1.6 templates

Few Differences:

Minor Modifications to index.php• New head jdoc include available• Optional: Ability to directly use param.ini

values

Page 7: Developing joomla 1.6 templates

Few Differences:

Page 8: Developing joomla 1.6 templates

Editing Template Parameters

Page 9: Developing joomla 1.6 templates

Editing Template Parameters

Page 10: Developing joomla 1.6 templates

What is a template, anyway?

“The Joomla template is a series of files within the CMS that control the

presentation of the content.”

-Barrie North, CompassDesigns.net

Page 11: Developing joomla 1.6 templates

What Tools Do I Need?• Localhost or Web HostingLocal: MAMP (Mac), WAMP / XAMMP (PC)

• HTML / CSS EditorDreamweaver, TextMate, Notepad++

• FTP ApplicationFileZilla (Mac/PC), Transmit (Mac)

• Image EditorPhotoshop, Fireworks, Gimp (all platforms)

Page 12: Developing joomla 1.6 templates

Template Elements

• PHP Code• CSS Code• Joomla API Code• Images• Additional Libraries (JS, JQuery, Ajax,

etc.)

Page 13: Developing joomla 1.6 templates

What, Where, & Why?

• index.php• index.html• params.ini• template_thumbnail.png• template_preview.png• templateDetails.xml

• css• template.css• index.html• css/*

• images• index.html• images/*

<JoomlaRoot>/templates/tmpl_sgo

Page 14: Developing joomla 1.6 templates

index.php – contents

• DocType• Header

• Stylesheets • Libraries• Header Jdoc

• Body• HTML• Module Jdoc• Component Jdoc• Message Jdoc• PHP Code

Page 15: Developing joomla 1.6 templates

index.php

Page 16: Developing joomla 1.6 templates

templateDetails.xml - contents

• DocType• Install Parameters

oAuthor InfooDefine Directory Structure (files and folders)oDefine all Module PositionsoDefine all Config Elements

Tells Joomla What To Do

Page 17: Developing joomla 1.6 templates

templateDetails.xml

Page 18: Developing joomla 1.6 templates

template.css - contents

• Body CSS• HTML Div Class / ID CSS• Menu CSS

Controls the layout, look and feel

Page 19: Developing joomla 1.6 templates

template.css

Page 20: Developing joomla 1.6 templates

Packaging

Page 21: Developing joomla 1.6 templates

Installing

Page 22: Developing joomla 1.6 templates

Installing

Page 23: Developing joomla 1.6 templates

Free Resources

• docs.joomla.org/Template_DevelopmentDocs on all things templating

• Compassdesigns.net/joomla-tutorialsComprehensive template tutorial for Joomla 1.6, includes sample template files.