Forums / Cotonti / Core Labs / In Progress / SEO upgrade, for meta tags

This is a very important change

Asmo
#1 2008-08-03 19:46
This is a very important change, so I would very much like to follow this "The Web Developer’s SEO Cheat Sheet", when working on the project.

A small To Do list:

1) The search engine takes of the first 70 characters in the title, therefore, should be brought meta titles in format:

structure_title - maintitle (for list)
page_title - page_cattitle - maintitle (for pages)

fs_title - maintitle (for for forum section)
ft_title - fs_title - maintitle (for for forum topic)

2) For the meta description must be used:
page_desc (for pages)
structure_desc (for list)
fs_desc (for forums sections)
ft_desc (for forum topic)
OR cfg.subtitle if empty

3) Meta content to be processed function sed_cc() at least.
Because, for example: after the first word in the title will double quote, the search engine will think that it is closing quote meta.
Summary: meta content must be escaped.

4) Remove system separator from the process of forming meta title, and use ' - ' (without quotes), so correctly
Because, for example: If I want to use the picture as a system separator?

5) For Plugins need to add another 1 type plugin as standalone, but without the inclusion footer.php and header.php, to be able to use dynamic meta tags in ther Plugins.

[spoiler]Please, someone, correct my English, if necessary :)[/spoiler]

Dit bericht is bewerkt door Asmo (2008-08-03 20:25, 15 jaren ago)
Lombi
#2 2008-08-03 20:27
Most of what you wrote in 1.) and 2.) also already exists (is written).

The problem starts here: "structure_desc (for list)"
The current code caches the description of the structure which results in huge caches if you have a lot of category descriptions and long ones. Trustmaster already made a plugin called "category descriptions" which handles this bit.

3) Meta content to be processed function sed_cc() at least.
Because, for example: after the first word in the title will double quote, the search engine will think that it is closing quote meta.
Summary: meta content must be escaped.

Apart from that it would also need to have the strip_tags function applied because if there are any html tags inside or URLs the header breaks.

5) For Plugins need to add another 1 type plugin as standalone, but without the inclusion footer.php and header.php, to be able to use dynamic meta tags in ther Plugins.

We already have the code for plugins to generate titles and metas so that shouldnt be a problem. The idea is of course that this code be implemented as a standard so all plugins will be able to create their own titles/metas.
<a href="http://www.domenlo.com">Surreal Art</a>
Asmo
#3 2008-08-03 20:52
#34 Lombi : Most of what you wrote in 1.) and 2.) also already exists (is written).

The problem starts here: "structure_desc (for list)"
The current code caches the description of the structure which results in huge caches if you have a lot of category descriptions and long ones. Trustmaster already made a plugin called "category descriptions" which handles this bit.
1)Maybe I was not sufficiently clear idea, here is essential - order of the elements in the title, of importance for the page.

Wrong - site title/page title (as is now)
Right - page title/site title

2)Yes, I have encountered many more sections - this is indeed a problem.
Apart from that it would also need to have the strip_tags function applied because if there are any html tags inside or URLs the header breaks.

Yes, of course.
Maybe it is wise to create a new sanetize function

We already have the code for plugins to generate titles and metas so that shouldnt be a problem. The idea is of course that this code be implemented as a standard so all plugins will be able to create their own titles/metas.
Let that this type of plug-ins supported by default, it would get rid of unnecessary inclusions
Lombi
#4 2008-08-03 21:11
1)Maybe I was not sufficiently clear idea, here is essential - order of the elements in the title, of importance for the page.
Wrong - site title/page title (as is now)
Right - page title/site title

I know :). I wrote code to fix this in 2006... hxxp://www.neocrome.net/page.php?id=2203

I will open a proposed defaults for the titles, but the ordering of each will be up to the site's owner (like adding characters around it to increate CTR from the SERPS)
<a href="http://www.domenlo.com">Surreal Art</a>
Asmo
#5 2008-08-03 21:26
Good :)
In 2006 year, previously, I made a plug for this and share on neocrome.ru, but, such things should be the default, imho.
Trustmaster
#6 2008-08-04 06:33
Got code for trunk? Post it!
May the Source be with you!