Dovrei creare un template vuoto partendo da 0. Ho letto che ci sono varie modifiche rispetto alla 1.5 e me ne sono reso conto perchè il pannello di amministrazione per la gestione dei template non vede il mio.
Eppure mi sembra di aver fatto tutto l'indispensabile: ho le cartelle css e images, ho i file index.php e templateDetails.xml.
Il file index è:
<?php
/**
* @version $Id: index.php 21518 2011-06-10 21:38:12Z chdemko $
* @package Joomla.Site
* @subpackage Templates.beez_20
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
JHtml::_('behavior.framework', true);
?>
<!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; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<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/beez_20/css/template.css" type="text/css" media="screen,projection" />
</head>
<body>
</body>
</head>
Il file templateDetails è:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.6//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="1.7" type="template" client="site">
<name>torricella_index</name>
<creationDate>23 Ottobre 2011</creationDate>
<author>Giancarlo Deambrosi</author>
<authorEmail>giancarlodeambrosi@gmail.com</authorEmail>
<authorUrl></authorUrl>
<copyright>Copyright (C) 2011</copyright>
<license></license>
<version>1.0.0</version>
<description>TPL_TORRICELLA_INDEX_XML_DESCRIPTION</description>
<files>
<folder>css</folder>
<folder>html</folder>
<folder>images</folder>
<filename>index.html</filename>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>favicon.ico</filename>
</files>
<positions>
<position></position>
</positions>
</extension>
Inoltre ho aggiunto i dati del template alla tabella jos_template_styles ma ancora non lo riconosce. Come mai?