What am I doing wrong here - Joomla! Forum - community, help and support
i can see header of template, component, left modules, , footer not show up. here code of index.php:
any appreciated. new @ making own templates, , first stab @ it.
thanks
tomblik
code: select all
<!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>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/_system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template_css.css" type="text/css" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
</div>
<div id="container">
<div id="left"><jdoc:include type="modules" name="left" style="" />
</div>
<div id="right"><?php if($this->params->get('showcomponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
<div id="footer">
</div>
</div>
</body>
</html>any appreciated. new @ making own templates, , first stab @ it.
thanks
tomblik
please check on code becase template coding note here:
your code create type modify code by:----
<?php
/*
* @copyright copyright (c) 2008 - 2009 rights reserved.
* @license
*/
// no direct access
defined( '_jexec' ) or die( 'restricted access' );
?>
<!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>
<jdoc:include type="head" />
<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" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
<link id="jtklocalcss" href="../joomlacharity/css/template.css" rel="stylesheet" type="text/css" />
<link id="jtklocalcss" href="../joomlacharity/css/template.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="logo_w1">charitable</div>
<div id="logo_w2">organization</div>
<div id="header_text">
<p>make donation today , 2000 children</p>
<a href="http://www.[spam].com">make donation !</a> </div>
<jdoc:include type="modules" name="user3" style="none" />
</div>
<div id="content">
<div id="left">
<jdoc:include type="component" />
<h1>photos</h1>
<div id="photos">
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo1.jpg" alt="photo" /></a>
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo2.jpg" alt="photo" /></a>
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo3.jpg" alt="photo" /></a>
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo4.jpg" alt="photo" /></a>
</div>
</div>
<div id="right">
<jdoc:include type="modules" name="left" style="none" />
</div>
<div id="footerline"></div>
</div>
<div id="footer">
<jdoc:include type="modules" name="footer" style="none" />
</div>
</div>
</body>
</html>
your code create type modify code by:----
<?php
/*
* @copyright copyright (c) 2008 - 2009 rights reserved.
* @license
*/
// no direct access
defined( '_jexec' ) or die( 'restricted access' );
?>
<!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>
<jdoc:include type="head" />
<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" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
<link id="jtklocalcss" href="../joomlacharity/css/template.css" rel="stylesheet" type="text/css" />
<link id="jtklocalcss" href="../joomlacharity/css/template.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="logo_w1">charitable</div>
<div id="logo_w2">organization</div>
<div id="header_text">
<p>make donation today , 2000 children</p>
<a href="http://www.[spam].com">make donation !</a> </div>
<jdoc:include type="modules" name="user3" style="none" />
</div>
<div id="content">
<div id="left">
<jdoc:include type="component" />
<h1>photos</h1>
<div id="photos">
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo1.jpg" alt="photo" /></a>
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo2.jpg" alt="photo" /></a>
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo3.jpg" alt="photo" /></a>
<a href="http://www.[spam].com"><img src="templates/<?php echo $this->template ?>/images/photo4.jpg" alt="photo" /></a>
</div>
</div>
<div id="right">
<jdoc:include type="modules" name="left" style="none" />
</div>
<div id="footerline"></div>
</div>
<div id="footer">
<jdoc:include type="modules" name="footer" style="none" />
</div>
</div>
</body>
</html>
Comments
Post a Comment