Confused over Page Types

Permalink
I have been working on understanding Page Types and need some assistance. I have a left_sidebar.php file in my theme which looks like this:
<?php  
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>
   <div id="contain" class="full">
      <div id="sidebar" class="left">
         <?php  
         $as = new Area('Sidebar');
         $as->display($c);
         ?>      
      </div>
      <div id="main" class="right">   
         <?php  
         $a = new Area('Main');
         $a->display($c);
         ?>


The problem is when I look at the defaults in Page Types, I do not see the side bar. Also I do not see places when I could add any blocks.

What code needs to be in this file so that the system will show locations where blocks can be added?

Thanks!

 
cannonf700 replied on at Permalink Reply
cannonf700
Did you put the page in "Edit Mode" ?
The code you have is complete...
however, you may not be seeing the sidebar because there's no content in it.
pvernaglia replied on at Permalink Reply
pvernaglia
Is your left_sidebar.php page in Dashboard - Pages and Themes - Page Types? If it is not you are seeing the default.php page
Overrun replied on at Permalink Reply
Yes my Page Type is defined in Dashboard -> Pages and Themes -> Page Types, and I have clicked on edit. Plus using firebug I can confirm that I am seeing two div statements with the correct class names, however the edit view does not show a holder for a left_sidebar, it just shows an editable region for the picture.

If I add a page using left_sidebar, I see lots block holders, Sidebar, Main, Footer 1, Footer, 2. But I am trying to setup a page type (will not be called left_sidebar) that will have a nav side bar and a place holder for content in main. So that my users can just pick that type and not have to mess with blocks.

Q: Does it matter where the left_sidebar.php file is located?
TheRealSean replied on at Permalink Reply
TheRealSean
instead of selecting edit try selecting "Defaults"
Dashboard -> Pages and Themes -> Page Types -> Defaults
that should load a new window with the Initial Version of the page type in

Then in the top left of the window select "Edit Mode" you should be able to add the required blocks in there

left_sidebar(or whatever you want to call it) should be in the root of your theme folder

also whats your css like? as absolute positions can bugger up c5's areas so that you can not edit certain sections
Overrun replied on at Permalink Reply
I should have been clearer. I am selecting Defaults on the page types dialog, then selecting edit.

The CSS is very basic with just two definitions. It is actually a copy of the ProBlog CSS, with class name changes.

What I do not understand is why some page types have places to add blocks in page types -> defaults -> edit, and some do not, even though they all have embedded PHP code for new areas. What controls the availability of these areas.
Overrun replied on at Permalink Best Answer Reply
After some more forum searching, I found my problem. In order to work with Page Types, you need to be logged in as Admin, not just part of the admins group.