Joomla!Day Valencia 2010 Taller Desarrollo de Plantillas para Joomla! 1.5
Creación de Plantillas Joomla! desde cero
-
Upload
hector-mansilla-arias -
Category
Technology
-
view
127 -
download
5
description
Transcript of Creación de Plantillas Joomla! desde cero
Plantillas en Joomla!Héctor Mansilla Arias
Cómo hacer una plantilla para Joomla! y no morir en el intento
Aersh… ¿Quién es el dostor?
Estructura de Carpetas
Carpeta \css
Carpeta \images
Carpeta \html
Estructura de Archivos
\index.html \index.php \templateDetails.xml \Favicon.ico \template_preview.png \template_thumbnail.png
\css\template.css
Veamos archivo por archivo…
Index.html
Favicon.ico
template_preview / template_thumbnail
Template_preview: 640 X 388 px Template_thumbnail: 206 X 150 px
…so what?
Index.php
<?phpdefined('_JEXEC') or die;$app = JFactory::getApplication();?>
Idioma del HTML…
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
Datos para el HEAD
<jdoc:include type="head" />
Dirección base de Joomla!
<?php echo $this->baseurl ?>
Dirección del template
<?php echo $this->template ?>
<head><jdoc:include type="head" /><link href =" <?php echo $this->template ?>/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" /><link rel="stylesheet" href =" <?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" /><link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" /><link rel="stylesheet" href =" <?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" /></head>
Posiciones de los módulos…
<jdoc:include type="modules" name="menu" style="xhtml"/>
Posiciones de los contenidos…
<jdoc:include type="component" />
templateDetails.xml
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site">
<name>nombrePlantilla</name><creationDate>5 de Mayo de
2013</creationDate><author>Hector Mansilla
Arias</author><authorEmail>[email protected]</
authorEmail><authorUrl>http://www.mansilla.cl</
authorUrl><copyright>Copyright (C) 2012 All
rights reserved.</copyright><license>GNU General Public License
version 2</license><version>2.5.0</version>
<files><folder>css</folder><folder>images</folder><filename>index.html</filename><filename>index.php</filename><filename>templateDetails.xml</
filename><filename>template_preview.png</
filename><filename>template_thumbnail.png</
filename><filename>favicon.ico</filename>
</files>
<positions><position>cabecera</position><position>menu</position><position>contenido</position><position>pie</position><position>debug</position>
</positions>
http://docs.joomla.org/
…Pero antes!!!
Héctor Mansilla Arias
E-Mail: [email protected]: @hector_sclBlog: www.mansilla.clHashtag: #JoomlaUSACH
Sitio web de consulta: www.joomla.cl