How can I create "Meta" tag automatically or easier?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 12, 2011   (RSS)

By jacgo - May 12, 2011

Hi all

Is there any keyword generate feather? or How can I create "Meta" tag automatically or easier?

Thanks!

Re: [jacgo] How can I create "Meta" tag automatically or easier?

By gkornbluth - May 12, 2011

Hi jacgo,

A Google search for "keyword generator" will bring up a list of a number of interesting tools.

I usually create a "Common Information" single record editor with fields for masthead images, site descriptions, key words, contact information and the like.

That way my clients can easily change any of this information.

Then I include this get records code at the top of my page:
// load records
list($common_informationRecords, $common_informationMetaData) = getRecords(array(
'tableName' => 'common_information',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$common_informationRecord = @$common_informationRecords[0]; // get first record

And this in the head section of he page:
<meta name="description" content="<?php echo $common_informationRecord['site_description'] ?>">
<meta name="keywords" content="<?php echo $common_informationRecord['keywords'] ?>">


There are a lot of other examples and hints like this in my CMSB Cookbook http://www.thecmsbcookbook.com

Hope that gets you started...

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php