MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Dec 04, 2008, 12:46 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Support
»
General Support
(Moderators:
zi
,
PaulGregory
)
»
META name="keywords" vs. meta http-equiv="keywords"
Pages: [
1
]
Go Down
« Previous topic
Next topic »
Print
Author
Topic: META name="keywords" vs. meta http-equiv="keywords" (Read 2179 times)
0 Members and 1 Guest are viewing this topic.
Briggsy
Sr. Member
Posts: 372
META name="keywords" vs. meta http-equiv="keywords"
«
on:
Mar 01, 2006, 07:01 AM »
Hey guys, I noticed some time ago that MODx put keywords in the following syntax
<meta http-equiv="keywords" content="blah, blah1, blah2">
Although it's valid I believe its more standard to use the following syntax
<META name="keywords" content="blah, blah1, blah2">
Is there anyway to change it? I'm trying to avoid the following"
4.1 Validate that http-equiv Keywords tag is NOT used
In an effort to trick public search engines people have tried to stuff pages with keywords repeatedly trick the search engine into giving a page a false high relevance ranking. This type of "Spam" could cause your page NOT to be indexed in a public search engine. A common searchability error is to use the http-equiv="keywords" to perform keyword stuffing, this check validates that this practice is not used.
Logged
Emergency Management Academy of New Zealand
http://www.emanz.ac.nz
MODx Sandbox
Login: sandbox Password: castle
Admin Sandbox
Login: sandbox Password: castle
rthrash
Foundation
Posts: 9,575
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #1 on:
Mar 01, 2006, 08:39 AM »
Please file a bug report for that, I think it should be changed and agree. Thanks!
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
Briggsy
Sr. Member
Posts: 372
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #2 on:
Mar 01, 2006, 10:06 AM »
reported in
http://modxcms.com/bugs/task/292?tasks=reported
Logged
Emergency Management Academy of New Zealand
http://www.emanz.ac.nz
MODx Sandbox
Login: sandbox Password: castle
Admin Sandbox
Login: sandbox Password: castle
yentsun
MODx Russia
Moderators
Posts: 516
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #3 on:
May 22, 2006, 09:42 AM »
Sorry to disturb but... is the case closed or what? I have a 0.9.2 installation and the meta tag is still "http-equiv="keywords".
Logged
http://modx.ru
- российская поддержка MODx
http://modxnotes.blogspot.com/
- личный блог по MODx
OpenGeek
MODx Co-Founder
Foundation
Posts: 5,054
looking a little more like my avatar again...
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #4 on:
May 22, 2006, 09:53 AM »
This is fixed in trunk from SVN, but is not yet available in a stable release. It is a very simple change and one you can easily make by searching for "http-equiv" in your manager/document.parser.class.inc.php and editing the instance relating to keywords in the mergeDocumentMETATags() function.
Logged
Jason Coward
MODx Co-Founder
xPDO Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together
.
MODx
Development
|
SVN
|
Fisheye
xPDO
Development
|
SVN
|
Fisheye
The spirit of a warrior is not geared to indulging and complaining, nor is it geared to winning or losing. The spirit of the warrior is geared only to struggle, and every struggle is a warrior's last battle on earth. Thus the outcome matters very little to him. In his last battle on earth a warrior lets his spirit flow free and clear. And as he wages his battle, knowing that his intent is impeccable, a warrior laughs and laughs.
— don Juan Matus
hgw
Member
Posts: 62
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #5 on:
Jun 04, 2006, 10:10 AM »
Hi, this is more a question on positioning the meta-tags output:
The
keywords
are put directly after the doctype and
before
the "title" tag - they should be
after
"Content-Type" as "no. 4" - second starting row :-)
I couldn't find this in manager/inc/document.parser.class.inc.php ... dont't want to mess around, maybe somebody has a quick tip on that ... Thx!!
Logged
Boby
Full Member
Posts: 155
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #6 on:
Jun 15, 2006, 09:13 AM »
To put the metas after the title tag, you have to edit the same function
Here is mine (a bit edited):
Code: (php)
<?php
function
mergeDocumentMETATags
(
$template
) {
if (
$this
->
documentObject
[
'haskeywords'
] ==
1
) {
//insert keywords
$keywords
=
implode
(
", "
,
$this
->
getKeywords
());
$metas
=
"\t<meta name=\"keywords\" content=\"{$keywords}\" />\n"
;
}
if (
$this
->
documentObject
[
'hasmetatags'
] ==
1
) {
//insert meta tags
$tags
=
$this
->
getMETATags
();
foreach (
$tags
as
$n
=>
$col
) {
$tag
=
strtolower
(
$col
[
'tag'
]);
$tagvalue
=
$col
[
'tagvalue'
];
$tagstyle
=
$col
[
'http_equiv'
] ?
'http-equiv'
:
'name'
;
$metas
.=
"\t<meta {$tagstyle}=\"{$tag}\" content=\"{$tagvalue}\" />\n"
;
}
}
$template
=
preg_replace
(
"/(<\/title>)/i"
,
"\\1\n"
.
$metas
,
$template
);
return
$template
;
}
?>
Just replace it with this one and it's ready, but remove the <?php ?> tags.
Boby
Logged
...my
Photo Gallery
on Flickr...
bullrat
Member
Posts: 98
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #7 on:
Sep 21, 2006, 08:48 AM »
Thanks, Boby. I was searching the forums looking for a way to move the keywords tag below the title tag and your edit worked perfectly. Thanks for posting the solution.
Logged
davidm
Marketing & Design Team
Posts: 6,777
The best way to predict the future is to invent it
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #8 on:
Sep 21, 2006, 09:02 AM »
Great fix Boby,
could you file this in the
bugtracker
so that this thing makes it in the next release ?
«
Last Edit: Sep 21, 2006, 09:17 AM by davidm
»
Logged
.:
nodeo.net
: Pour un web libre, moderne et ouvert ! ::
david-molliere.net
:
Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web
:.
***
Forums modxcms.fr
Participez à l'élaboration du site MODx francophone !
***
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Réalisations sous MODx :
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
rthrash
Foundation
Posts: 9,575
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #9 on:
Sep 21, 2006, 09:16 AM »
I'm adding it to trunk now... no need (for once!).
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (097 Wiki)
|
Fisheye SVN Browser
OpenGeek
MODx Co-Founder
Foundation
Posts: 5,054
looking a little more like my avatar again...
Re: META name="keywords" vs. meta http-equiv="keywords"
«
Reply #10 on:
Sep 21, 2006, 10:52 AM »
This seems like we're assuming a little too much:
* that the document has a title tag
* that the document has a content-type tag and it appears before the title tag
I know that this is how they should be ordered, but should we always assume this?
Logged
Jason Coward
MODx Co-Founder
xPDO Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together
.
MODx
Development
|
SVN
|
Fisheye
xPDO
Development
|
SVN
|
Fisheye
The spirit of a warrior is not geared to indulging and complaining, nor is it geared to winning or losing. The spirit of the warrior is geared only to struggle, and every struggle is a warrior's last battle on earth. Thus the outcome matters very little to him. In his last battle on earth a warrior lets his spirit flow free and clear. And as he wages his battle, knowing that his intent is impeccable, a warrior laughs and laughs.
— don Juan Matus
Pages: [
1
]
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Czech Community
-----------------------------
=> Oznámení
===> Důležitá oznámení/novinky
===> Bezpečnost
=> Podpora
===> FAQ (často kladené otázky)
===> Instalace
===> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
===> Design & Šablony
=> Dokumentace, tutoriály (návody) a překlady
===> Dokumentace
===> Tutoriály (návody)
===> Překlady (lokalizace)
=> Komunita
===> Oznámení
===> Představte se, prosím
===> Ukázky práce
===> Různé aneb cokoli co se jinam nehodí
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı