Elxis CMS Forum

Support => Administration => Topic started by: yjw485 on August 06, 2010, 17:13:01

Title: Add meta name tag
Post by: yjw485 on August 06, 2010, 17:13:01
Will the Next Moderator: Add a new tag meta name = "title" content =, how to add?
Title: Re: Add meta name tag
Post by: CREATIVE Options on August 06, 2010, 18:13:24
You can fill them, by adding them on the meta tag tab of each content / category / section e.t.c.
Even if you don't fill anything Elxis CMS will fill them for you regarding each title.
Title: Re: Add meta name tag
Post by: yjw485 on August 07, 2010, 03:07:05
Thanks! But you still do not understand my question, now this is the case
<Meta http-equiv = "Content-Type" content =
<title> Elxis </ title>
<Meta name = "description" content =
<Meta name = "keywords" content =
<meta name="Generator" content="Elxis-Copyright (C) 2006-2010 Elxis.org. All rights reserved." />
<meta name="robots" content="index, follow" />
I would like to add a tag inside another: <meta name = "title" content =

Will add in what position?
Title: Re: Add meta name tag
Post by: datahell on August 07, 2010, 14:15:53
You can add stuff to the Elxis header in your template's index.php file.
Title: Re: Add meta name tag
Post by: yjw485 on August 09, 2010, 19:06:09
Add a meta tag the title tag of each page to be different, elxis is mosShowHead this function to generate meta tags tags with <? Php mosShowHead ();?> Related
Title: Re: Add meta name tag
Post by: CREATIVE Options on August 09, 2010, 23:05:38
to do that you have to edit the hard code of the component content for sure, if you want different
Code: [Select]
meta name = "title" content = for each content.
Title: Re: Add meta name tag
Post by: cfb1972 on November 20, 2010, 09:51:08
I'm having the same questions as for example one of my site pages display a short Title tag such as "Health" because in the menu there is an item called Health (this is a Cat item under a section).
What are the steps to change that to a longer and more relevant title tag to avoid short title tags? Is there any option in Elxis to edit the title tag and meta description for chategories?
Title: Re: Add meta name tag
Post by: CREATIVE Options on January 17, 2011, 17:54:49
You just have to edit the section / category meta tags.
If you change the seo title you must be careful for hard links & stored / indexed links.
Title: Re: Add meta name tag
Post by: datahell on January 17, 2011, 19:55:01
The page title for category pages is formatted like this:
{Category title} - {Section title}
function: showCategory

The page title for category blog pages is formatted like this:
{Menu item name}
function: showBlogCategory

If you want to change it, then do it like this:
$mainframe->setPageTitle($menu->name); (around line 852)
To this:
$title = $menu->name;
if ($rows && isset($rows[0])) {
    $title = $rows[0]->category;
    if (trim($rows[0]->section) != '') {
        $title .= ' - '.$rows[0]->section;
    }
}
$mainframe->setPageTitle($title);

For more see: components/com_content/content.php