New Page Type not Working

Permalink 2 users found helpful
Help! I am unable to create a page type that works. Each attempt at creating a new page type fails as the pages just take on the properties of my default.php file.

I 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

View Replies:
Steevb replied on at Permalink Reply
Steevb
Is this a custom theme?

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.
Patsky123 replied on at Permalink Reply 1 Attachment
Thank you for the quick reply!

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
Patsky123 replied on at Permalink Reply
You can see what I am going through athttp://myocvl.com/.

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!
Steevb replied on at Permalink Reply
Steevb
Put:
<?php Loader::element('footer_required'); ?>


at the bottom of your page, just the closing body tag..
Patsky123 replied on at Permalink Reply
It seems like this may have fixed it...I'll let you know. Thanks!
katiam replied on at Permalink Reply
Did you resolve this? I am interested as I am having the exact same problem, however as far as I can tell I have that footer_required code snippit in there and it still doesn't work..
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...
katiam replied on at Permalink Reply
So I've found a solution as I had the same problem turns out it may be a BUG, seems to be a caching issue.

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."
Questcreative replied on at Permalink Reply
Cheers for posting this advice, thought i was going mad until I found this!
graphiczweb replied on at Permalink Reply
graphiczweb
Excellent. I have spent two hours wondering why I could not make page types that worked.

This post should be a Sticky and in capitals at the top of every page type entry!
webpresso replied on at Permalink Reply
webpresso
Cleaning the cache didn't solve it.
But turning it off - that was the solution! Thanks!
gracehcoote replied on at Permalink Reply
gracehcoote
Thank you so much, I was losing my mind wondering why my page types weren't working! Much appreciated :D
djragsdale replied on at Permalink Reply
Oh my gosh, this was by far the most frustrating thing about developing with Concrete 5. As a web developer, this problem was THIS CLOSE to causing me to switch all of my clients off Concrete5. This setting should be made more noticeable!
studiowoodz replied on at Permalink Reply
Oh my god... I tried numerous things.. but this solved the problem. Thanks