Hallo Forengemeinde,
Ich suche mir nun schon seit Tagen die Augen wund.
In einem selbst erstellten Template funktionieren bei mir im Profil die Tabs nicht, und im Editor fehlt auch die Auswahlleiste.
So wie ich es noch in Erinnerung habe, ist dafür doch Mootools zuständig, welches mit <jdoc:include type="head" /> geladen werden sollte.
Was muss noch alles, und vor allem wo eingefügt werden damit Kunena im vollem Umfang funktioniert ?
Meine index.php ist noch sehr klein, deshalb füge ich sie einfach mal hier im Beitrag mit ein.
Code:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
// This example depends on mootools
JHTML::_('behavior.mootools');
// Do something after page has loaded
$document =& JFactory::getDocument();
$document->addScriptDeclaration("window.addEvent('load', function() { doSomething(); })");
// This example depends on mootools
JHTML::_('behavior.mootools');
// Do something after page has loaded
$document =& JFactory::getDocument();
$document->addScriptDeclaration("window.addEvent('load', function() { doSomething(); })");
?>
<!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="en-gb" lang="en-gb">
<head>
<jdoc:include type="head" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
</head>
<body>
<div class="logo"><jdoc:include type="modules" name="logo" style="XHTML" /></div>
<div class="wrapper">
<div class="modulleft"><jdoc:include type="modules" name="left" style="XHTML" /></div>
<div class="main"><jdoc:include type="modules" name="header" style="XHTML" /></div>
<div id="message"><jdoc:include type="message" /></div>
<div class="component"><jdoc:include type="component" /></div>
<?php
if($this->countModules('right') != 0)
{
echo '<div class="modulright" >
<jdoc:include type="modules" name="right" style="xhtml" />
</div>';
} else {
echo '<style type="text/css" media="screen">
.modulright { display:none; }
.component { width:750px; margin-left: 0px; }
.wrapper{
background-image: url("templates/naadoo/images/bgwrapper.png");
background-repeat:repeat-y;}
</style>';
} ?>
</div>
<div class="moduletable footer"><jdoc:include type="modules" name="footer" style="XHTML" /></div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
Vielen Dank schon einmal.
MfG, C.A.M .