How to seit up master menu and footer

Permalink
The way my site was set up by a co-worker who left the business makes me open EVERY page's footer or menu bar, every time I want to make a change. He used "copy to clipboard/ paste from clipboard" I know this is not how a good CMS is supposed to work. Can you tell me how to convert this over to work properly?

Here is the site URL http://lebanonfarmersmarket.com/...

 
rge replied on at Permalink Reply
I am not totally sure if I understand the problem. When you have components that are frequently used on pages you should insert that code in one file. You can include the file wherever you need it. In that file you can make use of global areas. In this way you only need to add a block once (like the autonav).

Include a file that is stored in the folder elements of you theme.
<?php $this->inc('elements/header.php'); ?>


You could have something like this for the header. themename/elements/header.php
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php Loader::element('header_required');?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
 <?php 
  //create global area for the navigation
  $a = new GlobalArea('header'); 
  $a->display($c):
?>


You include this file on al the page types in you theme. The global area makes sure that the block is available trough all pages that have this area. So it is globally available trough the site.

You would have to do the same for the footer.

article concrete 5.7
http://www.concrete5.org/documentation/developers/5.7/designing-for...

There is also documentation available for concrete 5.6
http://www.concrete5.org/documentation/developers/5.6/...
goodnightfirefly replied on at Permalink Reply
goodnightfirefly
It sounds like you want to use a 'Stack', which let you reuse a block or a combination of blocks in multiple places on your site.

Documentation for version 5.6 is here: http://www.concrete5.org/documentation/using-concrete5/in-page-edit...