Joomla Template Development

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + guest57713e6 Marco Monteiro 4 months ago
    Nice tutorial, cover the very basics to build a joomla template =)
  • + swapnil00 swapnil00 8 months ago
    how to acces module override...?
Post a comment
Embed Video
Edit your comment Cancel

2 Favorites

Joomla Template Development - Presentation Transcript

  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=\"1.0\" encoding=\"utf-8\"?> • <!DOCTYPE install PUBLIC \"-//Joomla! 1.5//DTD template 1.0//EN\" \"http://dev.joomla.org/xml/1.5/template-install.dtd\"> • <install version=\"1.5\" type=\"template\"> 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=\"templateColor\" type=\"list\" default=\"white\" label=\"Template Color\" description=\"Choose the template color.\"> <option value=\"white\">White</option> <option value=\"black\">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 \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd\"> • <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"<? php echo $this->language; ?>\" lang=\"<?php echo $this- >language; ?>\" > Tuesday, February 17, 2009 11
  15. INDEX.PHP • Add header code and css • <head> • <jdoc:include type=\"head\" /> • <link rel=\"stylesheet\" href=\"<?php echo $this->baseurl ?>/ templates/mynewtemplate/css/style.css\" type=\"text/css\" /> • </head> Tuesday, February 17, 2009 12
  16. INDEX.PHP • Add modules and component • <body> <jdoc:include type=\"modules\" name=\"top\" /> • <jdoc:include type=\"component\" /> • <jdoc:include type=\"modules\" name=\"footer\" /> • • </body></html> Tuesday, February 17, 2009 13
  17. INDEX.PHP • Add modules and component • <body> <jdoc:include type=\"modules\" name=\"top\" /> • <jdoc:include type=\"component\" /> • <jdoc:include type=\"modules\" name=\"footer\" /> • • </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=\"stylesheet\" href=\"<?php echo $this->baseurl . '/ templates/' . $this->template . '/css/style.css' ?>\" type=\"text/css\" /> • <link rel=\"stylesheet\" href=\"<?php $tplColor = $this->params->get( 'templateColor' ); echo $this->baseurl . '/templates/' . $this->template . '/css/' . $tplColor . '.css'; ?>\" type=\"text/css\" /> 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=\"modules\" name=\"debug\" /> <?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=\"modules\" name=\"debug\" /> <?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
  37. THANK YOU Tuesday, February 17, 2009 23

+ Linda CoonenLinda Coonen, 9 months ago

custom

4662 views, 2 favs, 7 embeds more stats

How to develop a template using Joomla by Robert Ja more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 4662
    • 4488 on SlideShare
    • 174 from embeds
  • Comments 2
  • Favorites 2
  • Downloads 167
Most viewed embeds
  • 109 views on http://jmsgjoomla.blogspot.com
  • 33 views on http://joomlachicago.com
  • 23 views on http://jmsgtecnologias.blogspot.com
  • 5 views on http://www.joomlachicago.com
  • 2 views on http://www.djoomla.com

more

All embeds
  • 109 views on http://jmsgjoomla.blogspot.com
  • 33 views on http://joomlachicago.com
  • 23 views on http://jmsgtecnologias.blogspot.com
  • 5 views on http://www.joomlachicago.com
  • 2 views on http://www.djoomla.com
  • 1 views on http://djoomla.com
  • 1 views on http://translate.googleusercontent.com

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories