New Page Type not Working
Permalink 2 users found helpfulI have created a new page type called 'nocol' which should be pulling the structure from my nocol.php file but it doesn't.
I have tried virtually everything I can think of to get it to work including the creation of fresh page types with other names and corresponding php files with the same name.
Any help would be greatly appreciated as it creating a huge delay for my client.
Thanks!
Patrick
It is a simple custom template I made and it is not within a package.
I have attached a screen shot of the file structure. Am I missing something?
The following is the code from my nocol.php file:
<!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">
<head>
<link href="<?=$this->getThemePath()?>/styles/nocol.css" rel="stylesheet" type="text/css" />
<?php Loader::element('header_required'); ?>
</head>
<body>
<div class="container">
<div class="header">
<div class="header-leftbox">
<?php
$a = new GlobalArea('SiteLogo');
$a->display();
?>
</div>
<div class="header-centre">
<?php
$a = new GlobalArea('SiteHeadText');
$a->display();
?>
</div>
<div class="header-rightbox">
<?php
$a = new GlobalArea('SiteMYOCVL');
$a->display();
?>
</div>
<!-- end .header --></div>
<div class="image">
<?php
$a = new Area('PageImage');
$a->display($c);
?>
</div>
<div class="nav">
<?php
$a = new GlobalArea('SiteNav');
$a->display();
?>
</div>
<div class="">
<?php
$a = new Area('PageContent');
$a->display($c);
?>
</div>
<div class="footer">
<?php Loader::element('footer_required'); ?>
<div class="footertext">
<p>Privacy
Copyright © Ottawa Competitive Volleyball League 2013
<a href="http://leaguepro.ca/" title="League Management Software" target="_blank">League Management Software</a> by League Pro Canada</p></div>
<!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>
I really appreciate your help.
Thanks,
Patrick
The pages are very rough as I am just getting the structure together, but if you view the home page you can see that an image I added to the 'Men's schedule' page appears within the home page but shouldn't (under the slideshow).
When you view the 'Men's Schedule' page you will see that it is retaining the two colums that the home page has even though I competely removed them from the php file.
The code for the default.php is:
<!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">
<head>
<link href="<?=$this->getThemePath()?>/styles/main.css" rel="stylesheet" type="text/css" />
<?php Loader::element('header_required'); ?>
</head>
<body>
<div class="container">
<div class="header">
<div class="header-leftbox">
<?php
$a = new GlobalArea('SiteLogo');
$a->display();
?>
</div>
<div class="header-centre">
<?php
$a = new GlobalArea('SiteHeadText');
$a->display();
?>
</div>
<div class="header-rightbox">
<?php
$a = new GlobalArea('SiteMYOCVL');
$a->display();
?>
</div>
<!-- end .header --></div>
<div class="slideshow">
<?php
$a = new Area('Slide');
$a->display($c);
?>
</div>
<div class="nav">
<?php
$a = new GlobalArea('SiteNav');
$a->display();
?>
</div>
<div class="sidebarleft-header"><div class="sidebarleft-headertext">
<?php
$a = new GlobalArea('LeftColumnHeader');
$a->display();
?>
</div></div>
<div class="sidebar1">
<div class="sidebar1text">
<?php
$a = new Area('HomeLeftColumn');
$a->display($c);
?>
</div>
<!-- end .sidebar1 --></div>
<div class="content">
<?php
$a = new Area('HomeContent');
$a->display($c);
?>
</div>
<div class="sidebarright-header"><div class="sidebarright-headertext">
<?php
$a = new GlobalArea('RightColumnHeader');
$a->display();
?>
</div></div>
<div class="sidebar2">
<div class="sidebar2text">
</div>
<!-- end .sidebar2 --></div>
<div class="footer">
<?php Loader::element('footer_required'); ?>
<div class="footertext">
<p>Privacy
Copyright © Ottawa Competitive Volleyball League 2013
<a href="http://leaguepro.ca/" title="League Management Software" target="_blank">League Management Software</a> by League Pro Canada</p></div>
<!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>
Thanks again for your help!
<?php Loader::element('footer_required'); ?>
at the bottom of your page, just the closing body tag..
If I find a fix I'll post it here too in case it helps you also.
my post is here:
http://www.concrete5.org/community/forums/themes/site-will-only-use...
Despite clearing the site cache numerous times, until I actually changed some system settings, it wouldn't work.
I went to:
"Site Settings > Cache & Speed Settings"
and set
"Overrides Cache"
to
"Off - Good for development."
This post should be a Sticky and in capitals at the top of every page type entry!
But turning it off - that was the solution! Thanks!
If this is a custom theme, is it within a package?
Is the file structure correct?
A bit more info, screenshot or coding sample might help.