Domanda

Di recente mi stavo migando una pagina Web da Joomla 1.5 -> Joomla 3.2. Il modello stesso funziona alla grande. Il contenuto non viene visualizzato a causa del tag.

Il codice scritto che ho nel mio indice è come:

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
JHtml::_('behavior.framework',true);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
    $document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $baseUrl . '/templates/' . $this->template;

artxComponentWrapper($document);
?>
<!DOCTYPE html>
<html xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"
  xmlns:jdoc="http://www.w3.org/1999/XSL/Transform">
<head>
  <jdoc:include type="head" name="all" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <link rel="stylesheet" href="<?php echo $this->baseUrl; ?>/templates/system/css/system.css" type="text/css" />
  <link rel="stylesheet" href="<?php echo $this->baseUrl; ?>/templates/system/css/general.css" type="text/css" />
  <link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" />

  <!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
  <script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
</head>
...
</html>
.

E questo rende come:

<html xml:lang="sl-si" lang="sl-si" xmlns:jdoc="http://www.w3.org/1999/XSL/Transform" class="chrome  win">
<head>
  <style type="text/css"></style>
</head>
<body>
  <jdoc:include type="head" name="all">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <link rel="stylesheet" href="/templates/system/css/system.css" type="text/css">
    <link rel="stylesheet" href="/templates/system/css/general.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="/TKMS/templates/tkms_theme/css/template.css" media="screen">
    <!--[if IE 7]><link rel="stylesheet" href="/TKMS/templates/tkms_theme/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
    <script type="text/javascript" src="/TKMS/templates/tkms_theme/script.js"></script>
    <!--CONTENT-->..
  </jdoc:include>
.

Perché questo succede?Come posso risolvere questo?Ho letto che questo accade a causa di BOM, ma non potevo aggiustarlo.

È stato utile?

Soluzione 2

Il problema è che il tema è un tema Artisteer.Per risolvere questo problema aprire semplicemente il tema .ArtX e l'esportazione per altre versione Joomla. Se non hai il file .Artx, allora non posso aiutarti perché ho ritenuto irrisolvibile il problema.

Altri suggerimenti

prova a spostare il

  <jdoc:include type="head" name="all">
.

Tag nei tag testa, a destra (ce l'hai nel corpo).Questo è almeno dove dovrebbe essere.Non sono sicuro se renderà effettivamente, però ...

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top