Elxis CMS Forum
Support => Technical support => Topic started 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.
-
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" />
-
Where do you apply all these? What page do you need to modify?
-
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.