Joomla模板文件夹未显示在模板管理器中

时间:2013-08-17 07:04:34

标签: joomla joomla3.0 joomla-template

我正在尝试创建模板。我在模板文件夹中创建了一个模板文件夹,还创建了两个文件index.php和templateDetails.xml

我的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>your@email.com</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,尽管上面提到的步骤我的模板文件夹没有显示在模板管理器中。

1 个答案:

答案 0 :(得分:2)

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

有两种方法可以做到这一点:

  1. 下载您的文件,将其压缩并按照其他任何扩展程序进行安装。
  2. 在Joomla后端,转到“ Extension Manager ”,然后“发现”。这将检测已卸载的扩展,并应将您的模板放入列表中。检查并安装它
  3. 希望这有帮助

相关问题