SlideShare uma empresa Scribd logo
1 de 37
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

HTML5 & Friends
HTML5 & FriendsHTML5 & Friends
HTML5 & FriendsRemy Sharp
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010Brendan Sera-Shriar
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5Derek Bender
 
Foundation of Web Application Developmnet - XHTML
Foundation of Web Application Developmnet - XHTMLFoundation of Web Application Developmnet - XHTML
Foundation of Web Application Developmnet - XHTMLVashira Ravipanich
 
Intro to html5 Boilerplate
Intro to html5 BoilerplateIntro to html5 Boilerplate
Intro to html5 BoilerplateMichael Enslow
 
Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Jesse Thomas
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginnersSingsys Pte Ltd
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohanballychohanuk
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5Steven Chipman
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5Sayed Ahmed
 
Thinkful FrontEnd Crash Course - HTML & CSS
Thinkful FrontEnd Crash Course - HTML & CSSThinkful FrontEnd Crash Course - HTML & CSS
Thinkful FrontEnd Crash Course - HTML & CSSTJ Stalcup
 
BEM it! Introduction to BEM
BEM it! Introduction to BEMBEM it! Introduction to BEM
BEM it! Introduction to BEMVarya Stepanova
 
HTML5 with examples
HTML5 with examplesHTML5 with examples
HTML5 with examplesgopivthmk
 

Mais procurados (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
 

Semelhante a Joomla Template Development

Exemplos Aula4
Exemplos Aula4Exemplos Aula4
Exemplos Aula4softeam
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to APIelliando dias
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09pemaquid
 
Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Walkthrough 1Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Walkthrough 1Jeff 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 Themeinfowonders
 
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 '09Steve Souders
 
Debugging and Error handling
Debugging and Error handlingDebugging and Error handling
Debugging and Error handlingSuite Solutions
 
More Secrets of JavaScript Libraries
More Secrets of JavaScript LibrariesMore Secrets of JavaScript Libraries
More Secrets of JavaScript Librariesjeresig
 
Hacking Movable Type Training - Day 2
Hacking Movable Type Training - Day 2Hacking Movable Type Training - Day 2
Hacking Movable Type Training - Day 2Byrne Reese
 
Lca2009 Video A11y
Lca2009 Video A11yLca2009 Video A11y
Lca2009 Video A11yguesta3d158
 
Basics of Rich Internet Applications
Basics of Rich Internet ApplicationsBasics of Rich Internet Applications
Basics of Rich Internet ApplicationsSubramanyan Murali
 
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 #jd09nlJoomla!Days Netherlands
 
Flash templates for Joomla!
Flash templates for Joomla!Flash templates for Joomla!
Flash templates for Joomla!Herman Peeren
 
Fast Loading JavaScript
Fast Loading JavaScriptFast Loading JavaScript
Fast Loading JavaScriptAaron Peters
 
The Dojo Build System
The Dojo Build SystemThe Dojo Build System
The Dojo Build Systemklipstein
 

Semelhante a 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- 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
 
Flash templates for Joomla!
Flash templates for Joomla!Flash templates for Joomla!
Flash templates for Joomla!
 
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
 

Mais de 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-aheadLinda Coonen
 
Joomla templates2011
Joomla templates2011Joomla templates2011
Joomla templates2011Linda Coonen
 
Joomla17development
Joomla17developmentJoomla17development
Joomla17developmentLinda Coonen
 
Joomla chicago kickstart_part2
Joomla chicago kickstart_part2Joomla chicago kickstart_part2
Joomla chicago kickstart_part2Linda Coonen
 
Google Analytics Joomla Chicago 200905
Google Analytics Joomla Chicago 200905Google Analytics Joomla Chicago 200905
Google Analytics Joomla Chicago 200905Linda Coonen
 
Joomla Basics Part3
Joomla Basics Part3Joomla Basics Part3
Joomla Basics Part3Linda Coonen
 
Social Networking Presentation
Social Networking PresentationSocial Networking Presentation
Social Networking PresentationLinda Coonen
 
Cms Expo Program Book May08
Cms Expo Program Book May08Cms Expo Program Book May08
Cms Expo Program Book May08Linda Coonen
 
Joomlasitein60 Part1
Joomlasitein60 Part1Joomlasitein60 Part1
Joomlasitein60 Part1Linda Coonen
 
9.24.08.VolunteerAppreciation
9.24.08.VolunteerAppreciation9.24.08.VolunteerAppreciation
9.24.08.VolunteerAppreciationLinda Coonen
 
9.24.08.Show.Final
9.24.08.Show.Final9.24.08.Show.Final
9.24.08.Show.FinalLinda Coonen
 
Joomla Vs Drupal Cms Cage Match
Joomla Vs Drupal Cms Cage MatchJoomla Vs Drupal Cms Cage Match
Joomla Vs Drupal Cms Cage MatchLinda Coonen
 

Mais de 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
 

Último

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Último (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

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