Can I have every page header the same without adding block to them all?

Permalink
So I have a header file that looks like
<?php  defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css" media="screen">@import "<?php echo $this->getStyleSheet('default.css')?>";</style>
    <?php Loader::element('header_required'); ?>
    <?php
      $cp = new Permissions($c);
      if($cp->canWrite() && $cp->canAddSubContent()){
        echo('<style type="text/css">body{background-position:0px 49px;}</style>');
    }?>
  </head>
  <body>
    <div id="banner">
    </div>


And every page will use this header as follows
<?php $this->inc('elements/header.php'); ?>


My question is there a way for all pages that use this header to already have a auto-nav block or any other block already there without out me having to do it manually?

Thank You

 
jordanlev replied on at Permalink Reply
jordanlev
Yes, you want to "hard-code" the autonav block into the template itself. There are many threads on the forums about this, for example:
http://www.concrete5.org/community/forums/customizing_c5/hardcoded-...
http://www.concrete5.org/community/forums/usage/question-about-page...
http://www.concrete5.org/community/forums/themes/perist-autonav-tem...

(if those don't provide enough info for you, try searching around some more -- this is a very common task so there are lots of posts about it).

Good luck!
LucasAnderson replied on at Permalink Reply
LucasAnderson
I would also look into Page Type Defaults. These allow you to setup a 'default' block on any of your theme's page types. That means that your block will automatically be there when you create new pages using that page type. This also allows you to setup that block on "Child Pages" or pages that already exist.
SVijay replied on at Permalink Reply
SVijay
Hi Krooger,

Visit the given url for more details
http://www.concrete5.org/index.php?cID=11798...