I've just designed a custom template, uploaded it successfully, assigned a couple of modules to a couple of positions, but my modules aren't showing. When i preview my page I only see the header part of my template that includes the header image.
1. The modules I've assigned are set to "public",
2. in the template Manager Options... "Preview Module Positions" are set to Enabled...
3. I've double checked the templateDetails.xml file and the index.php file and everything appears in order. HELP
Attached is my template details
heres the code of the index.php
<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<!-- HTML5 Boilerplate -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<jdoc:include type="head" />
<link rel="shortcut icon" href="/favicon.ico">
<!-- Stylesheets -->
<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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/html5reset.css" media="all">
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/responsivegridsystem.css" media="all">
<!-- Responsive Stylesheets -->
<link rel="stylesheet" media="only screen and (max-width: 1024px) and (min-width: 769px)" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/1024.css">
<link rel="stylesheet" media="only screen and (max-width: 768px) and (min-width: 481px)" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/768.css">
<link rel="stylesheet" media="only screen and (max-width: 480px)" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/480.css">
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements and feature detects -->
<script src="js/modernizr-2.5.3-min.js"></script>
</head>
<body>
<div id="wrapper">
<!-- TOP NAVIGATION LINKS -->
<div id="topnav">
<jdoc:include type="modules" name="position-0" />
</div>
<!-- TOP NAVIGATION LINKS END -->
<!-- LOGO AND HEADER IMAGE -->
<div id="slogan">
<div id="fcib">
<jdoc:include type="modules" name="position-0" />
</div>
</div>
<!-- LOGO AND HEADER IMAGE END -->
<!-- TOP MAIN NAVIGATION LINKS -->
<div id="mainnav">
<jdoc:include type="modules" name="position-2" />
</div>
<!-- TOP MAIN NAVIGATION LINKS END -->
<!-- SLIDER GO HERE -->
<?php if ($this['modules']->count('position-3')) : ?>
<div id="headcontainer">
<header>
<jdoc:include type="modules" name="position-3" />
</header>
</div>
<?php endif; ?>
<!-- SLIDER GO HERE END -->
<div id="maincontentcontainer">
<div id="maincontent">
<div class="section group">
<jdoc:include type="position-4" />
<jdoc:include type="module" name="position-5"/>
<jdoc:include type="position-6" />
</div>
<?php if ($this['modules']->count('position-7')) : ?>
<div class="section group">
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-7" />
</div>
<?php endif; ?>
<?php if ($this['modules']->count('position-8')) : ?>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-8" />
</div>
<?php endif; ?>
<?php if ($this['modules']->count('position-9')) : ?>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-9" />
</div>
<?php endif; ?>
</div>
<!-- 2 Column -->
<div class="section group">
</div>
<?php if ($this['modules']->count('position-10')) : ?>
<div class="section group">
<div class="col span_1_of_2">
<jdoc:include type="modules" name="position-10" />
</div>
</div>
<?php endif; ?>
<!-- 2 Column End -->
<!-- 3 Column -->
<div class="section group">
</div>
<div class="section group">
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-11" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-12" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-13" />
</div>
</div>
<!-- 3 Column End -->
<!-- 3 Column -->
<div class="section group">
</div>
<div class="section group">
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-14" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-15" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-16" />
</div>
</div>
<!-- 3 Column End -->
<!--If necessary ad in more columns here -->
</div>
</div>
<div id="footercontainer">
<footer class="group">
<div class="col span_1_of_4">
<jdoc:include type="modules" name="position-17" />
</div>
<div class="col span_1_of_4">
<jdoc:include type="modules" name="position-18" />
</div>
<br class="breaker" />
<div id="smallprint">
<jdoc:include type="modules" name="position-19" />
</div>
</footer>
</div>
</div>
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
<!--[if (lt IE 9) & (!IEMobile)]>
<script src="js/selectivizr-min.js"></script>
<![endif]-->
<!-- More Scripts-->
<script src="js/responsivegridsystem.js"></script>
</body>
</html>
via Joomla! http://forum.joomla.org/viewtopic.php?t=830510&p=3120964#p3120964
1. The modules I've assigned are set to "public",
2. in the template Manager Options... "Preview Module Positions" are set to Enabled...
3. I've double checked the templateDetails.xml file and the index.php file and everything appears in order. HELP
Attached is my template details
heres the code of the index.php
<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<!-- HTML5 Boilerplate -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<jdoc:include type="head" />
<link rel="shortcut icon" href="/favicon.ico">
<!-- Stylesheets -->
<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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/html5reset.css" media="all">
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/responsivegridsystem.css" media="all">
<!-- Responsive Stylesheets -->
<link rel="stylesheet" media="only screen and (max-width: 1024px) and (min-width: 769px)" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/1024.css">
<link rel="stylesheet" media="only screen and (max-width: 768px) and (min-width: 481px)" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/768.css">
<link rel="stylesheet" media="only screen and (max-width: 480px)" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/480.css">
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements and feature detects -->
<script src="js/modernizr-2.5.3-min.js"></script>
</head>
<body>
<div id="wrapper">
<!-- TOP NAVIGATION LINKS -->
<div id="topnav">
<jdoc:include type="modules" name="position-0" />
</div>
<!-- TOP NAVIGATION LINKS END -->
<!-- LOGO AND HEADER IMAGE -->
<div id="slogan">
<div id="fcib">
<jdoc:include type="modules" name="position-0" />
</div>
</div>
<!-- LOGO AND HEADER IMAGE END -->
<!-- TOP MAIN NAVIGATION LINKS -->
<div id="mainnav">
<jdoc:include type="modules" name="position-2" />
</div>
<!-- TOP MAIN NAVIGATION LINKS END -->
<!-- SLIDER GO HERE -->
<?php if ($this['modules']->count('position-3')) : ?>
<div id="headcontainer">
<header>
<jdoc:include type="modules" name="position-3" />
</header>
</div>
<?php endif; ?>
<!-- SLIDER GO HERE END -->
<div id="maincontentcontainer">
<div id="maincontent">
<div class="section group">
<jdoc:include type="position-4" />
<jdoc:include type="module" name="position-5"/>
<jdoc:include type="position-6" />
</div>
<?php if ($this['modules']->count('position-7')) : ?>
<div class="section group">
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-7" />
</div>
<?php endif; ?>
<?php if ($this['modules']->count('position-8')) : ?>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-8" />
</div>
<?php endif; ?>
<?php if ($this['modules']->count('position-9')) : ?>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-9" />
</div>
<?php endif; ?>
</div>
<!-- 2 Column -->
<div class="section group">
</div>
<?php if ($this['modules']->count('position-10')) : ?>
<div class="section group">
<div class="col span_1_of_2">
<jdoc:include type="modules" name="position-10" />
</div>
</div>
<?php endif; ?>
<!-- 2 Column End -->
<!-- 3 Column -->
<div class="section group">
</div>
<div class="section group">
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-11" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-12" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-13" />
</div>
</div>
<!-- 3 Column End -->
<!-- 3 Column -->
<div class="section group">
</div>
<div class="section group">
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-14" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-15" />
</div>
<div class="col span_1_of_3">
<jdoc:include type="modules" name="position-16" />
</div>
</div>
<!-- 3 Column End -->
<!--If necessary ad in more columns here -->
</div>
</div>
<div id="footercontainer">
<footer class="group">
<div class="col span_1_of_4">
<jdoc:include type="modules" name="position-17" />
</div>
<div class="col span_1_of_4">
<jdoc:include type="modules" name="position-18" />
</div>
<br class="breaker" />
<div id="smallprint">
<jdoc:include type="modules" name="position-19" />
</div>
</footer>
</div>
</div>
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
<!--[if (lt IE 9) & (!IEMobile)]>
<script src="js/selectivizr-min.js"></script>
<![endif]-->
<!-- More Scripts-->
<script src="js/responsivegridsystem.js"></script>
</body>
</html>
Statistics: Posted by djoyce — Tue Dec 24, 2013 4:49 pm
via Joomla! http://forum.joomla.org/viewtopic.php?t=830510&p=3120964#p3120964
No comments:
Post a Comment