Hi red,
This is absolutely brilliant, thanks for your help.
The build is complete now just for the content.
One last question though is how to bring the meta into page specific so the variables file looks like this
i have noticed that the ’ and " are used but guess this is fine as the meta will have to be displayed in so I have tried variances such as
$metapagetitle='"About me"';
but it doesnt work
<?php
/**
* Header & Footer.
**/
$heading='robert-hargreaves.com';
$footer='&#38;#169; 2013 robert-hargreaves.com';
switch($getpage) {
case 'aboutme' :
$metapagetitle="About me";
$metadescription="Energy Efficiency, BioEnergy, Innovation, Logistics, Self Sufficiency, Water Footprint, Environmental Sustainability";
$metakeywords="meta description,google meta description,meta name description, Anaerobic Digestion, CHP, Export Management, Demand Reduction, Efficiency, Tariff Management, Environmental Permitting, Control & Automation, Remote & Self Optimising Systems Development, Anaerobic Digestion, CHP, National Grid Export, Energy Contract Management, Energy Consumption Analysis, Demand Reduction Management, Efficiency Engineering, Tariff Management, Systems Development, Environmental Permitting, Control, Automation, Upgrading Systems to, Remote, Self Optimising Logistics, Innovation, Change Management, Operations Science IT Telemetry and Systems, Waste Management Reduction, Food Miles, Water Footprint, Environmental, Sustainability Self Sufficiency";
$metaauthor="Robert Hargreaves, UK";
$metarobots="index,follow";
$pagetitle='About me';
$pagetitlecontent='This is the section about me';
$pagesubtitle1='Interests';
$pagesubtitle1content='Energy, etc, etc...';
$pagesubtitle2='More on me';
$pagesubtitle2content='This is an optional section and this is example text';
break;
case 'anaerobicdigestion' :
$metapagetitle="About me";
$metadescription="Energy Efficiency, BioEnergy, Innovation, Logistics, Self Sufficiency, Water Footprint, Environmental Sustainability";
$metakeywords="meta description,google meta description,meta name description, Anaerobic Digestion, CHP, Export Management, Demand Reduction, Efficiency, Tariff Management, Environmental Permitting, Control & Automation, Remote & Self Optimising Systems Development, Anaerobic Digestion, CHP, National Grid Export, Energy Contract Management, Energy Consumption Analysis, Demand Reduction Management, Efficiency Engineering, Tariff Management, Systems Development, Environmental Permitting, Control, Automation, Upgrading Systems to, Remote, Self Optimising Logistics, Innovation, Change Management, Operations Science IT Telemetry and Systems, Waste Management Reduction, Food Miles, Water Footprint, Environmental, Sustainability Self Sufficiency";
$metaauthor="Robert Hargreaves, UK";
$metarobots="index,follow";
$pagetitle='Experience';
$pagetitlecontent='Digestion is natures way of breaking down organic waste, naturally it occurs when a product is left open to air. Whatever happens it will decompose, from the moment its taken from source unless it is preserved.';
$pagesubtitle1='Experience';
$pagesubtitle1content='10 Years Experience in the design, specification, standards, projects, upgrade, consolidation, decomissioning, operation, feedstock optimisation and technical management';
$pagesubtitle2='Further Reading';
$pagesubtitle2content='This is the detail of the third section';
break;
default :
$metapagetitle="About me";
$metadescription="Energy Efficiency, BioEnergy, Innovation, Logistics, Self Sufficiency, Water Footprint, Environmental Sustainability";
$metakeywords="meta description,google meta description,meta name description, Anaerobic Digestion, CHP, Export Management, Demand Reduction, Efficiency, Tariff Management, Environmental Permitting, Control & Automation, Remote & Self Optimising Systems Development, Anaerobic Digestion, CHP, National Grid Export, Energy Contract Management, Energy Consumption Analysis, Demand Reduction Management, Efficiency Engineering, Tariff Management, Systems Development, Environmental Permitting, Control, Automation, Upgrading Systems to, Remote, Self Optimising Logistics, Innovation, Change Management, Operations Science IT Telemetry and Systems, Waste Management Reduction, Food Miles, Water Footprint, Environmental, Sustainability Self Sufficiency";
$metaauthor="Robert Hargreaves, UK";
$metarobots="index,follow";
$pagetitle='Home';
$pagetitlecontent='Welcome to our website.';
$pagesubtitle1='Home';
$pagesubtitle1content='Thank you for stopping by.';
$pagesubtitle2='Further Reading';
$pagesubtitle2content='This is the detail of the third section';
break;
}
?>
As it is now when I do this the meta doesn’t work in the page.
Thanks Rob