【问题标题】:Joomla template folder not showing in template managerJoomla 模板文件夹未显示在模板管理器中
【发布时间】:2013-08-19 14:45:59
【问题描述】:

我正在尝试创建一个模板。我在模板文件夹中为模板创建了一个文件夹,还创建了两个文件 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,尽管执行了上述步骤,但我的模板文件夹没有显示在模板管理器中。

【问题讨论】:

    标签: joomla joomla3.0 joomla-template


    【解决方案1】:

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

    有两种方法:

    1. 下载文件,将其压缩并安装,就像安装任何其他扩展程序一样。
    2. 在 Joomla 后端,转到“Extension Manager”,然后转到“Discover”。这将检测未安装的扩展,并应将您的模板显示在列表中。检查并安装它

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-12-09
      • 1970-01-01
      • 1970-01-01
      • 2023-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多