Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Templates Joomla模板未正确安装_Templates_Joomla_Joomla2.5 - Fatal编程技术网

Templates Joomla模板未正确安装

Templates Joomla模板未正确安装,templates,joomla,joomla2.5,Templates,Joomla,Joomla2.5,我正在制作一个定制的joomla模板。每次我尝试从后端安装它时,它都会上载但不安装。我已经检查了所有的目录列表和东西,但似乎找不到问题所在。 这是我的templatedetails.xml <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd

我正在制作一个定制的joomla模板。每次我尝试从后端安装它时,它都会上载但不安装。我已经检查了所有的目录列表和东西,但似乎找不到问题所在。 这是我的templatedetails.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN"              "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site">
<name></name>
<creationDate></creationDate>
<author></author>
<authorEmail></authorEmail>
<authorUrl></authorUrl>
<copyright>Copyright (C)</copyright>
<version>2.0</version>
<description></description>

<files>
    <folder>css</folder>
    <folder>images</folder>
    <folder>js</folder>
    <filename>index.php</filename>
    <filename>templateDetails.xml</filename>
</files>

<positions>
    <position>message</position>
    <position>search</position>
    <position>logo</position>
    <position>menu</position>
    <position>image slider</position>
    <position>left menu</position>
    <position>right menu</position>
    <position>twitter</position>
    <position>aboutA</position>
    <position>aboutB</position>
    <position>aboutC</position>
    <position>info</position>
    <position>footer</position>
    <position>banner</position>
    <position>Small-banner</position>
    <position>facebook</position>
    <position>contact-form</position>
    <position>banner-third</position>
</positions>

</extension>


由于某种原因,它没有正确地显示我的头部。我正在使用网格进行布局。
有人能帮我吗,因为我已经尝试了一段时间,但找不到解决方法。

无论您是否使用网格框架,它总是归结为URL或href=链接到index.php文件中的样式表和图像。这件事5分钟前就发生在我身上,一直发生在我身上,我从不回头看大局

首先,我不知道为什么,但我认为出于某种奇怪的原因,您应该或必须包含一个
index.html
空白文件

下一个

在模板详细信息中还需要一个
favicon.ico
,在模板根目录中需要一个实际的
favicon.ico
。我相信这是强制性的,或者破坏了模板,或者导致直接从joomla下安装的上传出现故障

我遇到的问题是,尽管我的样式表似乎被调用,但它们实际上并没有被调用,所以我所做的,以及我将来在构建joomla模板时将始终做的,是在我对头部或其他地方的文件的所有引用中替换它

假设您有
href=“css/bootstrap.min.css”
或其他内容。加上这个

<?php echo $this->baseurl ?>
/templates/
<?php echo $this->template ?>/

/模板/
/
成功

href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/bootstrap.min.css"
href=“/templates//css/bootstrap.min.css”
如果没有其他办法,这将是一个很好的做法

你也不能!在标签的开头不能忘记这一点


您没有显示所有index.php,因此我无法判断..

请验证您的xml

更改:

section="sixteen columns"  


安装过程应该完全围绕xml文件驱动。由于听起来您没有收到任何错误,我将首先用至少一个名称(通常与您希望模板所在的文件夹相同的名称)更新xml文档的顶部。我认为没有名字是不行的。让它成为一个没有空格的名字。
<?php echo $this->baseurl ?>
/templates/
<?php echo $this->template ?>/
href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/bootstrap.min.css"
section="sixteen columns"  
section class="sixteen columns"...