I've created a template for Joomla 1.5 without any pictures or smth. else, only positions for modules. When I try to install it, there is an error "Could not find a Joomla! XML setup file in the package".
The contents of the xml file is the following:
Code:
templateDetails.xml
<install version="1.5" type="template">
<name>new_template</name>
<creationDate>7 Nov 09</creationDate>
<author>new_author</author>
<copyright>new_author</copyright>
<authorEmail>new_author@mail.ru</authorEmail>
<authorUrl>www.new_author.com</authorUrl>
<version>1.0</version>
<description>new_author's template</description>
<files>
<filename>index.php</filename>
</files>
<images>
</images>
<css>
<filename>css/template_css.css</filename>
</css>
<params>
<param name="color" type="list" default="blue" label="Change Color"
description="Change Template Color">
<option value="blue">blue</option>
<option value="green">Green</option>
<option value="red">red</option>
</param>
<param name="showComponent" type="radio" default="1"
label="Show Component" description="Show/Hide the component output">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
</params>
</install>
index.php:
Code:
<!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; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $mainframe->getCfg('live_site'); ?>/templates/
_system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $mainframe->getCfg('live_site'); ?>/templates/
<?php echo $this->template ?>/css/template_css.css" type="text/css" />
</head>
<body>
<table border="1">
<tr>
<td width="15%"><jdoc:include type="module" name="breadcrumbs" /></td>
<td width="70%"><?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?> </td>
<td width="15%"><?php if($this->countModules('top')) : ?>
<jdoc:include type="modules" name="top" style="table"/>
<?php endif; ?> </td>
</tr>
<tr>
<td><?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" style="table"/>
<?php endif; ?> </td>
<td><?php if($this->countModules('center')) : ?>
<jdoc:include type="modules" name="center" style="table"/>
<?php endif; ?> </td>
<td><?php if($this->countModules('right')) : ?>
<jdoc:include type="modules" name="right" style="table"/>
<?php endif; ?> </td>
</tr>
</table>
</body>
</html>
And template_css.css:
Code:
html, body, form, fieldset {
margin: 0;
padding: 0;
}
body {
background: #FFFFFF;
color: #333333;
font-family: "Lucida Grande", Tahoma, Arial, sans-serif;
line-height: 1.6;
}
What's wrong?