2013-08-17 40 views
4

我想创建一个template.I已经在模板文件夹中创建一个文件夹模板,也创造了两个文件的index.php和templateDetails.xmlJoomla模板文件夹中的模板经理不显示

我的index.php有以下代码

<!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" /> 
</head> 

<body> 

<jdoc:include type="component" /> 

</body> 
</html> 

和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="3.1.5" type="template"> 
     <name>template _tut</name> 
     <creationDate>31-01-2009</creationDate> 
     <author>Nettut Fan</author> 
     <authorEmail>[email protected]</authorEmail> 
     <authorUrl>http://www.siteurl.com</authorUrl> 
     <copyright>You 2009</copyright> 
     <license>GNU/GPL</license> 
     <version>1.0.0</version> 
     <description>Template Tut</description> 
     <files> 
       <filename>index.php</filename> 
       <filename>templateDetails.xml</filename> 
       <filename>css/template.css</filename> 
     </files>   


     <positions> 
       <position>breadcrumb</position> 
       <position>left</position> 
       <position>right</position> 
       <position>top</position> 
       <position>user1</position> 
       <position>user2</position> 
       <position>user3</position> 
       <position>user4</position> 
       <position>footer</position> 
     </positions> 
</install> 

我的joomla版本是3.1.5,尽管做了上述步骤我的模板文件夹不显示在模板管理器中。

回答

2

您需要安装模板才能完全注册。

有2种方式这样做的:

  1. 下载你的文件,压缩起来,并安装它,就像任何其他扩展。
  2. 在Joomla后端,请转至“Extension Manager”,然后选择“Discover”。这将检测未安装的扩展,并应将您的模板放在列表中。检查并安装它

希望这有助于