Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 8:00 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
Posted: Sat Nov 07, 2009 7:16 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 07, 2009 2:03 am
Posts: 5
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?


Top
  E-mail  
 
Posted: Sun Nov 08, 2009 4:01 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jul 07, 2009 4:45 am
Posts: 615
Try:
http://www.w3schools.com/site/site_validate.asp

Hope this tool proves useful!

Good luck!


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Quick reply

 



Who is online

Users browsing this forum: deziner, dragontree, Exabot [Bot] and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group