custom page type no menu, header or footer visible?

Permalink
Trying to create a custom page type and i have so far managed to install the page via (themes/inspect) and it is available to use...however when i choose this page type i am missing the concrete5 menu at the top and the footer info as well?? please see the code below and maybe someone here can point me in the right direction? HELP...lol

The concept of the code is that dependant on the group status different information will show on the page under each specific instance.

I had initially tried to use version 5.6.1 with all the fantastic new permissions to do this but it disabled the news add on i was using and gave errors so back to 5.5.0.1 and the lesser permissions model and time to try to code it myself :(

Page code >>

<?php defined('C5_EXECUTE') or die(_("Access Denied."));
/* defined('C5_EXECUTE') or die("Access Denied."); */
$this->inc('elements/header.php'); ?>

<div id="central">

<div id="group-blocks">
<?php
$user = new User();
if ($user->inGroup(Group::getByName('e-mag subscribers'))) {
$subscribers = new Area('Registered Users With Subscriptions');
$subscribers->display($c);
exit;
} else
if ($user->inGroup(Group::getByName('Registered'))) {
$registeredUsers = new Area('Registered Users Without Subscripions');
$registeredUsers->display($c);
exit;
} else
if ($user->inGroup(Group::getByName('Administrators'))) {
$unregisteredUsers = new Area('Unregistered Users');
$unregisteredUsers->display($c);
$registeredUsers = new Area('Registered Users Without Subscripions');
$registeredUsers->display($c);
$subscribers = new Area('Registered Users With Subscriptions');
$subscribers->display($c);
exit;
} else
if ($user->inGroup(Group::getByName('Editors'))) {
$unregisteredUsers = new Area('Unregistered Users');
$unregisteredUsers->display($c);
$registeredUsers = new Area('Registered Users Without Subscripions');
$registeredUsers->display($c);
$subscribers = new Area('Registered Users With Subscriptions');
$subscribers->display($c);
exit;
} else
$unregisteredUsers = new Area('Unregistered Users');
$unregisteredUsers->display($c);
exit;
?>
</div>

<div id="sidebar">
<?php
$as = new Area('Sidebar');
$as->display($c);
?>
</div>

<div id="body">
<?php
$a = new Area('Main');
$a->display($c);

?>
</div>

<div class="spacer"> </div>
</div>

<?php $this->inc('elements/footer.php'); ?>

any ideas??

 
VidalThemes replied on at Permalink Reply
VidalThemes
Hi there,

In your header.php you need the following snippet of code:

<?php   Loader::element('header_required'); ?>


And in your footer.php you need the following snippet of code:

<?php   Loader::element('footer_required'); ?>


This is the usual suspect for missing edit bars etc.
bizonline replied on at Permalink Reply
Vidall thanks for the reply, sorry i should have been more specific, the header and footer php have that code in them and i should have also said that this is only happening on the custom page type and the rest of the site is ok.

any ideas??
VidalThemes replied on at Permalink Reply
VidalThemes
The other thing to have a look at would be the javascript, ie do you have any sitting in the footer or header, javascript conflicts can also trash the edit bar.

You do have a lot of permissions set, are you logged in as super admin? have you got permission to edit that page? I know thats probably obvious but sometimes these things get overlooked :)
bizonline replied on at Permalink Reply
Nope nothing extra in the header or the footer php and the custom page is just a copy of the default.php renamed and I have added the extra code into it. It is really strange all other pages are working correctly just not this one.
Oh yeah I'm logged in as super user with full editing, viewing permissions, but your right always worth a quick check haha :)