【发布时间】:2010-10-19 17:34:22
【问题描述】:
我通过创建以下文件创建了一个 Joomla 模板:index.php"、"templateDetails.xml"、"images" 和“css”。我安装正确,但在选择模板时没有显示图像。
有人知道如何解决这个问题吗?我三次检查了 Joomla 的路径和不同设置,但我没有工作
这是与图像对应的 XML 文件的一部分
<filename>images/left-top-corner.png</filename>
<filename>images/main-banner.jpg</filename>
<filename>images/main-bg.jpg</filename>
<filename>images/menu-bg.gif</filename>
<filename>images/right-bot-corner.png</filename>
<filename>images/right-top-corner.png</filename>
这是 CSS 代码的一部分
-
{ margin:0; padding:0;} html, body { height:100%;} body { background:url(..\images\main-bg.jpg) no-repeat center top #efc072; font-family:Arial, Helvetica, sans-serif; font-size:100%; line-height:1.0625em; color:#968a70;}
这是基本 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>
<head>
<jdoc:include type="head" />
baseurl ?>/templates/mynewtemplate/css/style.css" type="text/css" />
baseurl ?>/templates/mynewtemplate/css/layout.css" type="text/css" />
baseurl ?>/templates/mynewtemplate/css/ie_style.css" type="text/css" />
baseurl ?>/templates/template?>/css/style.css" type="text/css" />
baseurl ?>/templates/template;?>/css/ie_style.css" rel="stylesheet" type="text/css" /> baseurl ?>/templates/template;?>/css/ie7only.css" rel="stylesheet" type="text/css" /> baseurl ?>/templates/template;?>/javascript/ie_png.js">
【问题讨论】:
-
请显示一个无效图像的示例路径,以及(如果你知道的话)预期路径
-
我使用的路径示例,例如[../images/submit-bg.gif]
标签: php content-management-system joomla joomla-sef-urls joomla-template