Hi,
I've got script that populates the title, desc and keyword meta tags with the same data for every page. This resides in the index.tpl
However, this isn't good for seo.
What I want to do is dynamically populate the title, description and keyword meta data based on the page that loads.
This is what the code looks like now:
{if $title != '' }
<title>{$title} </title>
{elseif $config.site_title ne '' }
<title>{$config.site_title|stripslashes}</title>
{else}
<title>{lang mkey='title'}</title>
{/if}
<meta http-equiv="Content-Type" content="text/html; charset={lang mkey='ENCODING'}" />
<meta name="keywords" content="{$config.meta_keywords}" />
<meta name="description" content="{$config.meta_description}" />
I've been told I need to declare the array in the config file, but I'm stuck trying to figure out how to do this.
My brain also freezes up because instead of this data needing to be placed into a header, it sits in on the index and to me I draw a blank when try to figure out how to define the pages from the index...if that makes sense.
Anyway, I don't expect anyone to write the code for me, but I would like it someone could point me in the right direction in plain English. Least then I can have a crack at it.
Thanks