Confused over Page Types
Permalink<?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!
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?
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
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.
The code you have is complete...
however, you may not be seeing the sidebar because there's no content in it.