Hi Guys,
I've sent a couple emails via the contact form with no reply... so we'll see if anyone has any ideas here.
We run all of our sites using includes for the header and footer as a template system. Then we set variables in each page for the Title, Description, and Keywords. So an average content page looks like this:
<?
$pageTitle="My Site";
$pageDesc="What my site is about";
$pageKey="key,words,go,here";
?>
<? include('includes/header.php') ?>
<p><h1>Welcome to Site</h1>
<!-- content here -->
<? include('includes/footer.php') ?>
Then of course in the header.php file there is code like this:
<title><?=$pageTitle?></title>
So of course this doesn't work with the Pagelime SEO options, as it's looking for the title and meta tags in the particular file. So far the best hack I have come up with is something like this:
$pageTitle="<title>My Site</title>";
$pageDesc='<meta name="description" content="My Site" />';
$pageKey='<meta name="keywords" content="key,words,go,here" />';
The only problem now is that if the user puts an apostrophy into the keywords or desc it breaks. And I mean really breaks. It publishes a file that is quite screwed up and doesn't parse due to a php error.
So I'm a bit stuck because as of now as adding new pages is a bit useless if you can't change their page titles. Anyone have any suggested workaround here?
Thanks so much!
-Jesse