Hallo liebe Joomla-Forengemeinde,
ich wollte eine kleine Anpassung (einfügen einer Leerzeile) an einem bestehenden Templatedesign vornehmen. Dazu lud ich die index.php aus dem Template verzeichnis in NVU, fügte dir Leerzeile ein, speicherte und lud die Datei wieder hoch. Nun wird aber kein Inhalt mehr angezeigt, auch das erneute herausnehmen der eingefügten Leerzeile bringt nichts.
Wenn ich die Seite im Browser aufrufe und mir dort den Quelltext anzeigen lasse, ist mir aufgefallen, das die jdoc teile einfach nicht interpretiert wurden. Woran kann das liegen?
Hier der Code der index.php:
PHP-Code:
<!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; ?>"
dir="<?php echo $this->direction; ?>"
lang="<?php echo $this->language; ?>">
<head>
<?php /**
* @version $Id: index.php WaseemSadiq $
* @package Joomla * @subpackage Templates / basic skeleton template
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details. **/
// no direct access
defined('_JEXEC') or die('Restricted access');
include_once("includes/template_config.php");
$url = clone(JURI::getInstance());
$user =& JFactory::getUser();
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?' .'>'; ?>
<jdoc:include type="head" />
<meta **********="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="author" content="xzom" />
<meta **********="imagetoolbar" content="no" />
<link rel="shortcut icon" href="http://www.joomlaportal.de/images/stories/favicon.ico" />
<link href="templates/<?php echo $this->template ?>/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<title>index_template</title>
</head>
<body>
<div id="container">
<div id="header">
<div id="logo"><a href="http://www.xzom.de"><img src="templates/<?php echo $this->template ?>/images/logo.gif" alt="logo" border="0" height="117" width="338" /></a></div>
<div id="user1"><jdoc:include type="modules" name="user1" style=""></jdoc:include></div>
<div id="user2"><jdoc:include type="modules" name="user2" style=""></jdoc:include></div>
<div id="slogan"><img src="templates/<?php echo $this->template ?>/images/slogan.gif" height="44" width="240" /></div>
<div class="clr"></div>
</div>
<div id="pathlang">
<div id="path">
<div id="ipath">
<?php if ( $user->get('guest') ) {
echo 'Sie sind nicht angemeldet. ';
} else {
echo ' Hallo ';
echo $user->get('name') ;
} ?> </div>
<?php if ( $user->get('guest') ) { ?><jdoc:include type="modules" name="advert1" style=""><?php } else { ?><jdoc:include type="modules" name="advert2" style=""><?php } ?><jdoc:include type="modules" name="advert3" style=""></jdoc:include></jdoc:include></jdoc:include></div>
<div id="lang"><jdoc:include type="modules" name="inset" style=""></jdoc:include></div>
<div class="clr"></div>
</div>
<div id="spacer"></div>
<div id="content">
<div id="leftcol">
<form action="index.php" method="post">
<div class="search">
<div class="isearch" align="center"> <input name="option" value="com_search" type="hidden" /><input name="option" value="com_search" type="hidden" /><input class="inputbox" name="searchword" size="10" value="" onblur="if(this.value=='') this.value='';" onfocus="if(this.value=='') this.value='';" type="text" /></div>
<div class="butts"><?php if ($lang == "de" || $lang == '') { ?>
<input name="imageField" src="templates/<?php echo $this->template ?>/images/search_de.gif" alt="Suchen" border="0" height="31" type="image" width="75" /><?php } else { ?> <input name="imageField" src="templates/<?php echo $this->template ?>/images/search_en.gif" alt="Search" border="0" height="31" type="image" width="75" /><?php } ?> </div>
<div class="clr"></div>
</div>
</form>
<jdoc:include type="modules" name="left" style="">
</jdoc:include></div>
<?php if($this->countModules('right')) : ?><div id="rightcol"><jdoc:include type="modules" name="right" style=""></jdoc:include></div><?php endif; ?>
<div id="maincol<?php if(!$this->countModules('right')) : ?>wide<?php endif; ?>">
<div class="innerpad"><jdoc:include type="modules" name="breadcrumb" style=""></jdoc:include></div>
<div class="innerpad"><jdoc:include type="component"></jdoc:include>
<hr style="height: 1px; color: rgb(217, 227, 229);" /></div>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
<div id="footer">
<div id="footerinner">
<div id="botmenu"><jdoc:include type="modules" name="bottom" style=""> </jdoc:include></div>
</div>
</div>
</div>
</body>
</html>
Lesezeichen