Elxis CMS Forum

Support => Technical support => Topic started by: Romero on October 24, 2010, 15:30:44

Title: seo optimization (component)
Post by: Romero on October 24, 2010, 15:30:44
hi all
appears when a normal component or bot Seo - Meta Tag?
to seo optimization can be done en masse to write - to change the meta tags.
Title: Re: seo optimization (component)
Post by: datahell on October 24, 2010, 18:00:47
I did nt fully understood your question.

To set page title:
$mainframe->setPageTitle('title here');

To set META keywords:
$mainframe->setMetaTag('keywords', 'comma, separated, keywords');

To set META description:
$mainframe->setMetaTag('description', 'Page description here');

To set any META tag:
$mainframe->setMetaTag('tagname', 'tag value');
Examples:
$mainframe->setMetaTag('resource-type', 'document');
$mainframe->setMetaTag('distribution', 'global');

The final generated HTML is as follows (for the last example):
<meta name="distribution" content="global" />
Title: Re: seo optimization (component)
Post by: cfb1972 on November 20, 2010, 10:05:15
Where do you apply all these? What page do you need to modify?
Title: Re: seo optimization (component)
Post by: webgift on November 20, 2010, 13:06:51
Search in each component where importing the head data.
Files that declare this info are usually [depending the developer that create each component] /component/com_comname/ com_name.php and  /component/com_comname/ com_name.html.php
As you can understand this information change dynamically!

Where :
com_comname = component name with suffix com_
com_name = basic title of component like eforum etc.