SlideShare a Scribd company logo
TEMPLATE DEVELOPMENT
                             Robert Jacobi, Arc Technology Group




Tuesday, February 17, 2009                                         1
THE PIECES

    • Directory              Structure
    • templateDetails.xml

    • params.ini

    • index.php

    • style.css



Tuesday, February 17, 2009                        2
DIRECTORY STRUCTURE


    • http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla
        %21_template
    • Template               Name for Root
    • css/

    • images/




Tuesday, February 17, 2009                                      3
DIRECTORY STRUCTURE


    • http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla
        %21_template
    • Template               Name for Root
    • css/

    • images/




Tuesday, February 17, 2009                                      3
IMPORTANT FILES

    • templateDetails.xml*

    • index.php*

    • template_thumbnail.png

    • params.ini

    • style.css

    • index.html


Tuesday, February 17, 2009                     4
IMPORTANT FILES

    • templateDetails.xml*

    • index.php*

    • template_thumbnail.png

    • params.ini

    • style.css

    • index.html


Tuesday, February 17, 2009                     4
TEMPLATEDETAILS.XML


    • <?xml              version=quot;1.0quot; encoding=quot;utf-8quot;?>
    • <!DOCTYPE       install PUBLIC quot;-//Joomla! 1.5//DTD template
        1.0//ENquot; quot;http://dev.joomla.org/xml/1.5/template-install.dtdquot;>
    • <install               version=quot;1.5quot; type=quot;templatequot;>




Tuesday, February 17, 2009                                               5
DESCRIPTION ELEMENTS

    • <name>tba</name>

    • <creationDate>2009-02-01</creationDate>

    • <author>Arc Technology   Group</author>
    • <authorEmail>solutions@arctg.com</authorEmail>

    • <authorUrl>http://www.arctg.com</authorUrl>

    • <copyright>Arc Technology   Group</copyright>

Tuesday, February 17, 2009                             6
FILES AND POSITIONS



    • <files><filename>relative_path/file_name</filename></files>

    • <positions><position>name</position></positions>




Tuesday, February 17, 2009                                          7
PARAMS



    • http://docs.joomla.org/Tutorial:Template_parameters

    • <params><param         ...>...</param></params>




Tuesday, February 17, 2009                                  8
PARAMS AND PARAMS.INI

    • <params>

    • <param     name=quot;templateColorquot; type=quot;listquot; default=quot;whitequot;
        label=quot;Template Colorquot; description=quot;Choose the template
        color.quot;>
            <option value=quot;whitequot;>White</option>
            <option value=quot;blackquot;>Black</option>
        </param>
    • </params>


Tuesday, February 17, 2009                                          9
PARAMS AND PARAMS.INI



    • templateColor=white




Tuesday, February 17, 2009               10
PARAMS AND PARAMS.INI



    • templateColor=white




Tuesday, February 17, 2009               10
INDEX.PHP

    • Restrict               access and describe document
    • <?php              defined( '_JEXEC' ) or die( 'Restricted access' );?>
    • <!DOCTYPE         html PUBLIC quot;-//W3C//DTD XHTML 1.0
        Transitional//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
        transitional.dtdquot;>
    • <html   xmlns=quot;http://www.w3.org/1999/xhtmlquot; xml:lang=quot;<?
        php echo $this->language; ?>quot; lang=quot;<?php echo $this-
        >language; ?>quot; >

Tuesday, February 17, 2009                                                      11
INDEX.PHP

    • Add            header code and css
    • <head>

    • <jdoc:include          type=quot;headquot; />
    • <link  rel=quot;stylesheetquot; href=quot;<?php echo $this->baseurl ?>/
        templates/mynewtemplate/css/style.cssquot; type=quot;text/cssquot; />
    • </head>


Tuesday, February 17, 2009                                          12
INDEX.PHP

    • Add            modules and component
    • <body>

                   <jdoc:include type=quot;modulesquot; name=quot;topquot; />
    •

                   <jdoc:include type=quot;componentquot; />
    •

                   <jdoc:include type=quot;modulesquot; name=quot;footerquot; />
    •

    • </body></html>


Tuesday, February 17, 2009                                         13
INDEX.PHP

    • Add            modules and component
    • <body>

                   <jdoc:include type=quot;modulesquot; name=quot;topquot; />
    •

                   <jdoc:include type=quot;componentquot; />
    •

                   <jdoc:include type=quot;modulesquot; name=quot;footerquot; />
    •

    • </body></html>


Tuesday, February 17, 2009                                         13
ZIP IT!



    • Zip         up the new template directory
    • Install           template on to your Joomla instance




Tuesday, February 17, 2009                                    14
ZIP IT!



    • Zip         up the new template directory
    • Install           template on to your Joomla instance




Tuesday, February 17, 2009                                    14
ZIP IT!



    • Zip         up the new template directory
    • Install           template on to your Joomla instance




Tuesday, February 17, 2009                                    14
TAYLOR BRUCE INDEX.PHP

    • Header                 changes from basic template
    • <link  rel=quot;stylesheetquot; href=quot;<?php echo $this->baseurl . '/
        templates/' . $this->template . '/css/style.css' ?>quot;
        type=quot;text/cssquot; />
    • <link   rel=quot;stylesheetquot; href=quot;<?php
        $tplColor = $this->params->get( 'templateColor' );
        echo $this->baseurl . '/templates/' . $this->template . '/css/' .
        $tplColor . '.css';
        ?>quot; type=quot;text/cssquot; />

Tuesday, February 17, 2009                                                  15
TAYLOR BRUCE INDEX.PHP


    • <?php   echo $this->baseurl . '/templates/' . $this->template . '/
        images/taylor-bruce-logo.gif' ?>
    • <?php   if($this->countModules('debug')) : ?>
            <jdoc:include type=quot;modulesquot; name=quot;debugquot; />
        <?php endif; ?>
    • <?php              echo JHTML::_('date', 'now', '%Y' ) ?>



Tuesday, February 17, 2009                                                 16
TAYLOR BRUCE INDEX.PHP


    • <?php   echo $this->baseurl . '/templates/' . $this->template . '/
        images/taylor-bruce-logo.gif' ?>
    • <?php   if($this->countModules('debug')) : ?>
            <jdoc:include type=quot;modulesquot; name=quot;debugquot; />
        <?php endif; ?>
    • <?php              echo JHTML::_('date', 'now', '%Y' ) ?>



Tuesday, February 17, 2009                                                 16
ADD IMAGES



    • Are          these listed in templateDetails.xml?




Tuesday, February 17, 2009                                17
ADD IMAGES



    • Are          these listed in templateDetails.xml?




Tuesday, February 17, 2009                                17
ADD CSS

    • Make             sure about templateDetails.xml
    • style.css

    • black.css

    • white.css

    • editor.css



Tuesday, February 17, 2009                              18
ADD CSS

    • Make             sure about templateDetails.xml
    • style.css

    • black.css

    • white.css

    • editor.css



Tuesday, February 17, 2009                              18
ADD CSS

    • Make             sure about templateDetails.xml
    • style.css

    • black.css

    • white.css

    • editor.css



Tuesday, February 17, 2009                              18
ADD CSS

    • Make             sure about templateDetails.xml
    • style.css

    • black.css

    • white.css

    • editor.css



Tuesday, February 17, 2009                              18
ADD CSS

    • Make             sure about templateDetails.xml
    • style.css

    • black.css

    • white.css

    • editor.css



Tuesday, February 17, 2009                              18
TBA HOME PAGE



    • FrontPage              SlideShow (Commercial)
    • Extended               Menu (GPL)




Tuesday, February 17, 2009                            19
TBA HOME PAGE



    • FrontPage              SlideShow (Commercial)
    • Extended               Menu (GPL)




Tuesday, February 17, 2009                            19
ADVANCED TOPICS STYLES

    • Module                 Styles
         • none. Output               the raw Module content with no wrapping.
         • table. Output              the module in a table.
         • horz. Output               the module as a table inside an outer table.
         • xhtml. Output               the module wrapped in div tags.
         • rounded. Output   the module wrapped in nested div tags to
             support rounded corners.

Tuesday, February 17, 2009                                                           20
ADVANCED TOPICS
                               PARAMETERS


    • For         template customization
    • Common                 in commercial templates




Tuesday, February 17, 2009                             21
ADVANCED TOPICS
                               PARAMETERS


    • For         template customization
    • Common                 in commercial templates




Tuesday, February 17, 2009                             21
ADVANCED TOPICS
                              OUTPUT OVERRIDE


    • http://developer.joomla.org/tutorials/165-understanding-
        output-overrides-in-joomla.html
    • Component                  Overrides
    • Module                 Overrides




Tuesday, February 17, 2009                                       22
THANK YOU




Tuesday, February 17, 2009               23

More Related Content

What's hot

HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
Offir Ariel
 
HTML5 & Friends
HTML5 & FriendsHTML5 & Friends
HTML5 & Friends
Remy Sharp
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010
Brendan Sera-Shriar
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5
Derek Bender
 
Foundation of Web Application Developmnet - XHTML
Foundation of Web Application Developmnet - XHTMLFoundation of Web Application Developmnet - XHTML
Foundation of Web Application Developmnet - XHTML
Vashira Ravipanich
 
PHP
PHPPHP
Intro to html5 Boilerplate
Intro to html5 BoilerplateIntro to html5 Boilerplate
Intro to html5 Boilerplate
Michael Enslow
 
Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1
Jesse Thomas
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
Singsys Pte Ltd
 
RESTful design
RESTful designRESTful design
RESTful design
Robert MacLean
 
Web Standards
Web StandardsWeb Standards
Web Standards
Helior Colorado
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohan
ballychohanuk
 
Critical Rendering Path
Critical Rendering PathCritical Rendering Path
Critical Rendering Path
BarbaraFellner1
 
Html 5 introduction
Html 5 introductionHtml 5 introduction
Html 5 introduction
Mahendra Kumar
 
HTML5
HTML5HTML5
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
Steven Chipman
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
Sayed Ahmed
 
Thinkful FrontEnd Crash Course - HTML & CSS
Thinkful FrontEnd Crash Course - HTML & CSSThinkful FrontEnd Crash Course - HTML & CSS
Thinkful FrontEnd Crash Course - HTML & CSS
TJ Stalcup
 
BEM it! Introduction to BEM
BEM it! Introduction to BEMBEM it! Introduction to BEM
BEM it! Introduction to BEM
Varya Stepanova
 
HTML5 with examples
HTML5 with examplesHTML5 with examples
HTML5 with examples
gopivthmk
 

What's hot (20)

HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
 
HTML5 & Friends
HTML5 & FriendsHTML5 & Friends
HTML5 & Friends
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5
 
Foundation of Web Application Developmnet - XHTML
Foundation of Web Application Developmnet - XHTMLFoundation of Web Application Developmnet - XHTML
Foundation of Web Application Developmnet - XHTML
 
PHP
PHPPHP
PHP
 
Intro to html5 Boilerplate
Intro to html5 BoilerplateIntro to html5 Boilerplate
Intro to html5 Boilerplate
 
Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
RESTful design
RESTful designRESTful design
RESTful design
 
Web Standards
Web StandardsWeb Standards
Web Standards
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohan
 
Critical Rendering Path
Critical Rendering PathCritical Rendering Path
Critical Rendering Path
 
Html 5 introduction
Html 5 introductionHtml 5 introduction
Html 5 introduction
 
HTML5
HTML5HTML5
HTML5
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
Thinkful FrontEnd Crash Course - HTML & CSS
Thinkful FrontEnd Crash Course - HTML & CSSThinkful FrontEnd Crash Course - HTML & CSS
Thinkful FrontEnd Crash Course - HTML & CSS
 
BEM it! Introduction to BEM
BEM it! Introduction to BEMBEM it! Introduction to BEM
BEM it! Introduction to BEM
 
HTML5 with examples
HTML5 with examplesHTML5 with examples
HTML5 with examples
 

Similar to Joomla Template Development

Exemplos Aula4
Exemplos Aula4Exemplos Aula4
Exemplos Aula4
softeam
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to API
elliando dias
 
PHP 5 Sucks. PHP 5 Rocks.
PHP 5 Sucks. PHP 5 Rocks.PHP 5 Sucks. PHP 5 Rocks.
PHP 5 Sucks. PHP 5 Rocks.
Adam Trachtenberg
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
pemaquid
 
Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Walkthrough 1Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Walkthrough 1
Jeff Potts
 
Drupal 6 Theming using the Zen Theme
Drupal 6 Theming using the Zen ThemeDrupal 6 Theming using the Zen Theme
Drupal 6 Theming using the Zen Theme
infowonders
 
Php
PhpPhp
Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09
Steve Souders
 
Debugging and Error handling
Debugging and Error handlingDebugging and Error handling
Debugging and Error handling
Suite Solutions
 
WordPress APIs
WordPress APIsWordPress APIs
WordPress APIs
Joseph Scott
 
Creating a Webpage
Creating a WebpageCreating a Webpage
Creating a Webpage
Matthew Mobbs
 
More Secrets of JavaScript Libraries
More Secrets of JavaScript LibrariesMore Secrets of JavaScript Libraries
More Secrets of JavaScript Libraries
jeresig
 
Hacking Movable Type Training - Day 2
Hacking Movable Type Training - Day 2Hacking Movable Type Training - Day 2
Hacking Movable Type Training - Day 2
Byrne Reese
 
Lca2009 Video A11y
Lca2009 Video A11yLca2009 Video A11y
Lca2009 Video A11y
guesta3d158
 
Basics of Rich Internet Applications
Basics of Rich Internet ApplicationsBasics of Rich Internet Applications
Basics of Rich Internet Applications
Subramanyan Murali
 
Flash templates for Joomla!
Flash templates for Joomla!Flash templates for Joomla!
Flash templates for Joomla!
Herman Peeren
 
Flash Templates- Joomla!Days NL 2009 #jd09nl
Flash Templates- Joomla!Days NL 2009 #jd09nlFlash Templates- Joomla!Days NL 2009 #jd09nl
Flash Templates- Joomla!Days NL 2009 #jd09nl
Joomla!Days Netherlands
 
Fast Loading JavaScript
Fast Loading JavaScriptFast Loading JavaScript
Fast Loading JavaScript
Aaron Peters
 
The Dojo Build System
The Dojo Build SystemThe Dojo Build System
The Dojo Build System
klipstein
 
EPiServer Web Parts
EPiServer Web PartsEPiServer Web Parts
EPiServer Web Parts
EPiServer Meetup Oslo
 

Similar to Joomla Template Development (20)

Exemplos Aula4
Exemplos Aula4Exemplos Aula4
Exemplos Aula4
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to API
 
PHP 5 Sucks. PHP 5 Rocks.
PHP 5 Sucks. PHP 5 Rocks.PHP 5 Sucks. PHP 5 Rocks.
PHP 5 Sucks. PHP 5 Rocks.
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
 
Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Walkthrough 1Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Walkthrough 1
 
Drupal 6 Theming using the Zen Theme
Drupal 6 Theming using the Zen ThemeDrupal 6 Theming using the Zen Theme
Drupal 6 Theming using the Zen Theme
 
Php
PhpPhp
Php
 
Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09
 
Debugging and Error handling
Debugging and Error handlingDebugging and Error handling
Debugging and Error handling
 
WordPress APIs
WordPress APIsWordPress APIs
WordPress APIs
 
Creating a Webpage
Creating a WebpageCreating a Webpage
Creating a Webpage
 
More Secrets of JavaScript Libraries
More Secrets of JavaScript LibrariesMore Secrets of JavaScript Libraries
More Secrets of JavaScript Libraries
 
Hacking Movable Type Training - Day 2
Hacking Movable Type Training - Day 2Hacking Movable Type Training - Day 2
Hacking Movable Type Training - Day 2
 
Lca2009 Video A11y
Lca2009 Video A11yLca2009 Video A11y
Lca2009 Video A11y
 
Basics of Rich Internet Applications
Basics of Rich Internet ApplicationsBasics of Rich Internet Applications
Basics of Rich Internet Applications
 
Flash templates for Joomla!
Flash templates for Joomla!Flash templates for Joomla!
Flash templates for Joomla!
 
Flash Templates- Joomla!Days NL 2009 #jd09nl
Flash Templates- Joomla!Days NL 2009 #jd09nlFlash Templates- Joomla!Days NL 2009 #jd09nl
Flash Templates- Joomla!Days NL 2009 #jd09nl
 
Fast Loading JavaScript
Fast Loading JavaScriptFast Loading JavaScript
Fast Loading JavaScript
 
The Dojo Build System
The Dojo Build SystemThe Dojo Build System
The Dojo Build System
 
EPiServer Web Parts
EPiServer Web PartsEPiServer Web Parts
EPiServer Web Parts
 

More from Linda Coonen

Mar 2012-joomla-2.5-and-the-path-ahead
Mar 2012-joomla-2.5-and-the-path-aheadMar 2012-joomla-2.5-and-the-path-ahead
Mar 2012-joomla-2.5-and-the-path-ahead
Linda Coonen
 
Joomla templates2011
Joomla templates2011Joomla templates2011
Joomla templates2011
Linda Coonen
 
Joomla17development
Joomla17developmentJoomla17development
Joomla17development
Linda Coonen
 
Joomla chicago kickstart_part2
Joomla chicago kickstart_part2Joomla chicago kickstart_part2
Joomla chicago kickstart_part2
Linda Coonen
 
Video For Joomla
Video For JoomlaVideo For Joomla
Video For Joomla
Linda Coonen
 
Google Analytics Joomla Chicago 200905
Google Analytics Joomla Chicago 200905Google Analytics Joomla Chicago 200905
Google Analytics Joomla Chicago 200905
Linda Coonen
 
Joomla Basics Part3
Joomla Basics Part3Joomla Basics Part3
Joomla Basics Part3
Linda Coonen
 
Email Marketing
Email MarketingEmail Marketing
Email Marketing
Linda Coonen
 
Social Networking Presentation
Social Networking PresentationSocial Networking Presentation
Social Networking Presentation
Linda Coonen
 
Cms Expo Program Book May08
Cms Expo Program Book May08Cms Expo Program Book May08
Cms Expo Program Book May08
Linda Coonen
 
Joomlasitein60 Part1
Joomlasitein60 Part1Joomlasitein60 Part1
Joomlasitein60 Part1
Linda Coonen
 
9.24.08.VolunteerAppreciation
9.24.08.VolunteerAppreciation9.24.08.VolunteerAppreciation
9.24.08.VolunteerAppreciation
Linda Coonen
 
9.24.08.Show.Final
9.24.08.Show.Final9.24.08.Show.Final
9.24.08.Show.Final
Linda Coonen
 
Joomla Vs Drupal Cms Cage Match
Joomla Vs Drupal Cms Cage MatchJoomla Vs Drupal Cms Cage Match
Joomla Vs Drupal Cms Cage Match
Linda Coonen
 
Joomla Basics101
Joomla Basics101Joomla Basics101
Joomla Basics101
Linda Coonen
 

More from Linda Coonen (15)

Mar 2012-joomla-2.5-and-the-path-ahead
Mar 2012-joomla-2.5-and-the-path-aheadMar 2012-joomla-2.5-and-the-path-ahead
Mar 2012-joomla-2.5-and-the-path-ahead
 
Joomla templates2011
Joomla templates2011Joomla templates2011
Joomla templates2011
 
Joomla17development
Joomla17developmentJoomla17development
Joomla17development
 
Joomla chicago kickstart_part2
Joomla chicago kickstart_part2Joomla chicago kickstart_part2
Joomla chicago kickstart_part2
 
Video For Joomla
Video For JoomlaVideo For Joomla
Video For Joomla
 
Google Analytics Joomla Chicago 200905
Google Analytics Joomla Chicago 200905Google Analytics Joomla Chicago 200905
Google Analytics Joomla Chicago 200905
 
Joomla Basics Part3
Joomla Basics Part3Joomla Basics Part3
Joomla Basics Part3
 
Email Marketing
Email MarketingEmail Marketing
Email Marketing
 
Social Networking Presentation
Social Networking PresentationSocial Networking Presentation
Social Networking Presentation
 
Cms Expo Program Book May08
Cms Expo Program Book May08Cms Expo Program Book May08
Cms Expo Program Book May08
 
Joomlasitein60 Part1
Joomlasitein60 Part1Joomlasitein60 Part1
Joomlasitein60 Part1
 
9.24.08.VolunteerAppreciation
9.24.08.VolunteerAppreciation9.24.08.VolunteerAppreciation
9.24.08.VolunteerAppreciation
 
9.24.08.Show.Final
9.24.08.Show.Final9.24.08.Show.Final
9.24.08.Show.Final
 
Joomla Vs Drupal Cms Cage Match
Joomla Vs Drupal Cms Cage MatchJoomla Vs Drupal Cms Cage Match
Joomla Vs Drupal Cms Cage Match
 
Joomla Basics101
Joomla Basics101Joomla Basics101
Joomla Basics101
 

Recently uploaded

AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 

Recently uploaded (20)

AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Artificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic WarfareArtificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic Warfare
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 

Joomla Template Development

  • 1. TEMPLATE DEVELOPMENT Robert Jacobi, Arc Technology Group Tuesday, February 17, 2009 1
  • 2. THE PIECES • Directory Structure • templateDetails.xml • params.ini • index.php • style.css Tuesday, February 17, 2009 2
  • 3. DIRECTORY STRUCTURE • http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla %21_template • Template Name for Root • css/ • images/ Tuesday, February 17, 2009 3
  • 4. DIRECTORY STRUCTURE • http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla %21_template • Template Name for Root • css/ • images/ Tuesday, February 17, 2009 3
  • 5. IMPORTANT FILES • templateDetails.xml* • index.php* • template_thumbnail.png • params.ini • style.css • index.html Tuesday, February 17, 2009 4
  • 6. IMPORTANT FILES • templateDetails.xml* • index.php* • template_thumbnail.png • params.ini • style.css • index.html Tuesday, February 17, 2009 4
  • 7. TEMPLATEDETAILS.XML • <?xml version=quot;1.0quot; encoding=quot;utf-8quot;?> • <!DOCTYPE install PUBLIC quot;-//Joomla! 1.5//DTD template 1.0//ENquot; quot;http://dev.joomla.org/xml/1.5/template-install.dtdquot;> • <install version=quot;1.5quot; type=quot;templatequot;> Tuesday, February 17, 2009 5
  • 8. DESCRIPTION ELEMENTS • <name>tba</name> • <creationDate>2009-02-01</creationDate> • <author>Arc Technology Group</author> • <authorEmail>solutions@arctg.com</authorEmail> • <authorUrl>http://www.arctg.com</authorUrl> • <copyright>Arc Technology Group</copyright> Tuesday, February 17, 2009 6
  • 9. FILES AND POSITIONS • <files><filename>relative_path/file_name</filename></files> • <positions><position>name</position></positions> Tuesday, February 17, 2009 7
  • 10. PARAMS • http://docs.joomla.org/Tutorial:Template_parameters • <params><param ...>...</param></params> Tuesday, February 17, 2009 8
  • 11. PARAMS AND PARAMS.INI • <params> • <param name=quot;templateColorquot; type=quot;listquot; default=quot;whitequot; label=quot;Template Colorquot; description=quot;Choose the template color.quot;> <option value=quot;whitequot;>White</option> <option value=quot;blackquot;>Black</option> </param> • </params> Tuesday, February 17, 2009 9
  • 12. PARAMS AND PARAMS.INI • templateColor=white Tuesday, February 17, 2009 10
  • 13. PARAMS AND PARAMS.INI • templateColor=white Tuesday, February 17, 2009 10
  • 14. INDEX.PHP • Restrict access and describe document • <?php defined( '_JEXEC' ) or die( 'Restricted access' );?> • <!DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtdquot;> • <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xml:lang=quot;<? php echo $this->language; ?>quot; lang=quot;<?php echo $this- >language; ?>quot; > Tuesday, February 17, 2009 11
  • 15. INDEX.PHP • Add header code and css • <head> • <jdoc:include type=quot;headquot; /> • <link rel=quot;stylesheetquot; href=quot;<?php echo $this->baseurl ?>/ templates/mynewtemplate/css/style.cssquot; type=quot;text/cssquot; /> • </head> Tuesday, February 17, 2009 12
  • 16. INDEX.PHP • Add modules and component • <body> <jdoc:include type=quot;modulesquot; name=quot;topquot; /> • <jdoc:include type=quot;componentquot; /> • <jdoc:include type=quot;modulesquot; name=quot;footerquot; /> • • </body></html> Tuesday, February 17, 2009 13
  • 17. INDEX.PHP • Add modules and component • <body> <jdoc:include type=quot;modulesquot; name=quot;topquot; /> • <jdoc:include type=quot;componentquot; /> • <jdoc:include type=quot;modulesquot; name=quot;footerquot; /> • • </body></html> Tuesday, February 17, 2009 13
  • 18. ZIP IT! • Zip up the new template directory • Install template on to your Joomla instance Tuesday, February 17, 2009 14
  • 19. ZIP IT! • Zip up the new template directory • Install template on to your Joomla instance Tuesday, February 17, 2009 14
  • 20. ZIP IT! • Zip up the new template directory • Install template on to your Joomla instance Tuesday, February 17, 2009 14
  • 21. TAYLOR BRUCE INDEX.PHP • Header changes from basic template • <link rel=quot;stylesheetquot; href=quot;<?php echo $this->baseurl . '/ templates/' . $this->template . '/css/style.css' ?>quot; type=quot;text/cssquot; /> • <link rel=quot;stylesheetquot; href=quot;<?php $tplColor = $this->params->get( 'templateColor' ); echo $this->baseurl . '/templates/' . $this->template . '/css/' . $tplColor . '.css'; ?>quot; type=quot;text/cssquot; /> Tuesday, February 17, 2009 15
  • 22. TAYLOR BRUCE INDEX.PHP • <?php echo $this->baseurl . '/templates/' . $this->template . '/ images/taylor-bruce-logo.gif' ?> • <?php if($this->countModules('debug')) : ?> <jdoc:include type=quot;modulesquot; name=quot;debugquot; /> <?php endif; ?> • <?php echo JHTML::_('date', 'now', '%Y' ) ?> Tuesday, February 17, 2009 16
  • 23. TAYLOR BRUCE INDEX.PHP • <?php echo $this->baseurl . '/templates/' . $this->template . '/ images/taylor-bruce-logo.gif' ?> • <?php if($this->countModules('debug')) : ?> <jdoc:include type=quot;modulesquot; name=quot;debugquot; /> <?php endif; ?> • <?php echo JHTML::_('date', 'now', '%Y' ) ?> Tuesday, February 17, 2009 16
  • 24. ADD IMAGES • Are these listed in templateDetails.xml? Tuesday, February 17, 2009 17
  • 25. ADD IMAGES • Are these listed in templateDetails.xml? Tuesday, February 17, 2009 17
  • 26. ADD CSS • Make sure about templateDetails.xml • style.css • black.css • white.css • editor.css Tuesday, February 17, 2009 18
  • 27. ADD CSS • Make sure about templateDetails.xml • style.css • black.css • white.css • editor.css Tuesday, February 17, 2009 18
  • 28. ADD CSS • Make sure about templateDetails.xml • style.css • black.css • white.css • editor.css Tuesday, February 17, 2009 18
  • 29. ADD CSS • Make sure about templateDetails.xml • style.css • black.css • white.css • editor.css Tuesday, February 17, 2009 18
  • 30. ADD CSS • Make sure about templateDetails.xml • style.css • black.css • white.css • editor.css Tuesday, February 17, 2009 18
  • 31. TBA HOME PAGE • FrontPage SlideShow (Commercial) • Extended Menu (GPL) Tuesday, February 17, 2009 19
  • 32. TBA HOME PAGE • FrontPage SlideShow (Commercial) • Extended Menu (GPL) Tuesday, February 17, 2009 19
  • 33. ADVANCED TOPICS STYLES • Module Styles • none. Output the raw Module content with no wrapping. • table. Output the module in a table. • horz. Output the module as a table inside an outer table. • xhtml. Output the module wrapped in div tags. • rounded. Output the module wrapped in nested div tags to support rounded corners. Tuesday, February 17, 2009 20
  • 34. ADVANCED TOPICS PARAMETERS • For template customization • Common in commercial templates Tuesday, February 17, 2009 21
  • 35. ADVANCED TOPICS PARAMETERS • For template customization • Common in commercial templates Tuesday, February 17, 2009 21
  • 36. ADVANCED TOPICS OUTPUT OVERRIDE • http://developer.joomla.org/tutorials/165-understanding- output-overrides-in-joomla.html • Component Overrides • Module Overrides Tuesday, February 17, 2009 22