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:50 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
:Read
Frequently Asked Questions (FAQ)
MODx Community Forums
»
Support
»
General Support
(Moderators:
zi
,
PaulGregory
)
»
How do you get keywords?
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Print
Author
Topic: How do you get keywords? (Read 4463 times)
0 Members and 1 Guest are viewing this topic.
steph
Member
Posts: 85
How do you get keywords?
«
on:
Jan 25, 2006, 05:01 PM »
Hi all.
I was wondering how to get the keywords for a page.
I've tried using a [[GetKeywords]] snippet call, on the off chance that it's some kind of built in snippet (I don't have the snippet in the Manage resources -> Snippets section of the backend). I've tried using [*keywords*], as suggested on a different post, but that doesn't work (I guess because it's not a field in the modx_site_content table).
Looking around the forums it seems that some people are getting a set of metatags automatically set by modx, one of which is the keywords metadata. I am not getting this. I've modified my template from the default, but I've done a comparison with the original and there doesn't seem to be anything missing from the header.
Any ideas anyone?
Steph
Logged
Stephan Dale
http://mindspill.net/computing/cross-platform-notes/modx.html
modx(a)mindspill.net
OpenGeek
MODx Co-Founder
Foundation
Posts: 5,054
looking a little more like my avatar again...
Re: How do you get keywords?
«
Reply #1 on:
Jan 25, 2006, 05:24 PM »
You need to define your keywords for the site and then assign them to each page, if you want to use the built in keywords system. These facilities are available under Manage Resources --> META Tags and Keywords, and the META Keywords tab when editing a document, respectively.
Once you select a keyword from a specific document and save, the keyword meta tag will automatically be inserted at the top of the HEAD tag in your document.
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
steph
Member
Posts: 85
Re: How do you get keywords?
«
Reply #2 on:
Jan 25, 2006, 05:51 PM »
Thanks for your quick reply.
You're absolutely right, it is output properly. God knows why I didn't see that, I've gone code blind!
Is there any way I can retrieve these keywords for use in other parts of the template? I would like to have a list of keywords that is populated from both the built in keywords system and from a template variable. This would allow me to have a set of default keywords supplied by the admin (via the built in keywords system) and also allow users to add their own (via the TV).
I've modified the DropMenu snippet (and other code) to allow it to filter the items, including weblinks, by keywords or by a regexp on a TV. Ultimately I would like to have more control over keywords and bring together the two methods of creating them. I will post my changes when they're complete.
Thanks again.
Steph
Logged
Stephan Dale
http://mindspill.net/computing/cross-platform-notes/modx.html
modx(a)mindspill.net
OpenGeek
MODx Co-Founder
Foundation
Posts: 5,054
looking a little more like my avatar again...
Re: How do you get keywords?
«
Reply #3 on:
Jan 25, 2006, 09:44 PM »
Quote from: steph on Jan 25, 2006, 05:51 PM
Is there any way I can retrieve these keywords for use in other parts of the template? I would like to have a list of keywords that is populated from both the built in keywords system and from a template variable. This would allow me to have a set of default keywords supplied by the admin (via the built in keywords system) and also allow users to add their own (via the TV).
$modx->getKeywords() will get you the current document's keywords in an array (or you can specify a document id as a parameter, to get keywords from another document), which you can easily implode(). However, in this case, you can enter a TV tag as a keyword (e.g. [*extra-keywords*]) and it should get processed by the parser.
NOTE: $modx->getKeywords($id) and $modx->getMETATags($id) both need to be added to the API quick reference documentation. I'll see what I can do.
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
yentsun
MODx Russia
Moderators
Posts: 516
Re: How do you get keywords?
«
Reply #4 on:
Apr 21, 2006, 06:39 AM »
I still cannot get this to work. I've added metatags in the Resources section. Chose some in the page edit and no result
SOLVED.
I had my <head> tag in a chunk. Since I get it out and put it into templates - meta tags work!
«
Last Edit: Apr 21, 2006, 07:05 AM by yentsun
»
Logged
http://modx.ru
- российская поддержка MODx
http://modxnotes.blogspot.com/
- личный блог по MODx
doze
Coding Team
Posts: 3,237
....Boom!
Re: How do you get keywords?
«
Reply #5 on:
Apr 21, 2006, 10:45 AM »
Quote from: OpenGeek on Jan 25, 2006, 09:44 PM
NOTE: $modx->getKeywords($id) and $modx->getMETATags($id) both need to be added to the API quick reference documentation. I'll see what I can do.
And lots of others too...
..I would like to see a list of all api functions and return types for starters..
Logged
MODxWiki
|| Please, list wiki worthy material
here
!
kandyghost
Jr. Member
Posts: 2
Re: How do you get keywords?
«
Reply #6 on:
May 25, 2006, 10:21 PM »
Could I set keywords base on page title automatically??
How to do ?
Logged
OpenGeek
MODx Co-Founder
Foundation
Posts: 5,054
looking a little more like my avatar again...
Re: How do you get keywords?
«
Reply #7 on:
May 25, 2006, 10:45 PM »
Quote from: kandyghost on May 25, 2006, 10:21 PM
Could I set keywords base on page title automatically??
How to do ?
Very simply add this to the head of your template...
Code:
<meta name="keywords" content="[*pagetitle*]" />
...and that will work with any modx tag...I often do...
Code:
<meta name="description" content="[*introtext*]" />
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
bugsmi0
Sr. Member
Posts: 354
Re: How do you get keywords?
«
Reply #8 on:
Jul 21, 2006, 12:59 PM »
Is there a difference between these two ?
<meta http-equiv="keywords" content=
<meta name="keywords" content=
the first one is generated when adding the keyword to doc,
do we need both ?
also are the keywords in the list words we should already have inside the doc or does it matter since they will be in the meta
Logged
SMF Bookmark Mod - check it out
http://mods.simplemachines.org/index.php?mod=350
OpenGeek
MODx Co-Founder
Foundation
Posts: 5,054
looking a little more like my avatar again...
Re: How do you get keywords?
«
Reply #9 on:
Jul 22, 2006, 10:53 AM »
Quote from: bugsmi0 on Jul 21, 2006, 12:59 PM
Is there a difference between these two ?
<meta http-equiv="keywords" content=
<meta name="keywords" content=
the first one is generated when adding the keyword to doc,
do we need both ?
also are the keywords in the list words we should already have inside the doc or does it matter since they will be in the meta
You have an outdated 0.9.1 or earlier MODx install that needs to be upgraded. This bug was addressed in 0.9.2+ -- see
http://modxcms.com/bugs/task/292
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
bugsmi0
Sr. Member
Posts: 354
Re: How do you get keywords?
«
Reply #10 on:
Jul 25, 2006, 01:34 AM »
I have the lastest Modx Install 0.9.2, are you saying this should not happen in the latest releast ?
well I've had the latest release for awhile now and it happens as described
Logged
SMF Bookmark Mod - check it out
http://mods.simplemachines.org/index.php?mod=350
steph
Member
Posts: 85
Re: How do you get keywords?
«
Reply #11 on:
Jul 25, 2006, 02:33 AM »
From the HTML 4 spec:
http://www.w3.org/TR/html4/struct/global.html#h-7.4.4.2
I'd use both, because both are valid you can't be sure which one (or both) will be used by search engines, browsers, etc.
Logged
Stephan Dale
http://mindspill.net/computing/cross-platform-notes/modx.html
modx(a)mindspill.net
Vitalized
Full Member
Posts: 120
"Teach a man to phish"
Re: How do you get keywords?
«
Reply #12 on:
Aug 07, 2006, 07:04 AM »
I have an idea but I don't know enough PHP to implement it!
Can someone mod the TagCloud 1.1 script to be page spaciffic and output Meta keywords/phrases automatically?
Just an idea!
Logged
Web Development, Web Hosting & Search Engine Marketing by:
Vitalized | UK
t. +44 (0) 208 123 0708
w.
www.vitalized.co.uk
Website Design
|
Search Engine Marketing (SEM)
|
UK MODx web hosting
, secure, fast & 100% MODx compatible
Vitalized | Australia
t. +61 (0) 2 8011 3095
w.
www.vitalized-australia.com.au
Website Design
|
Search Engine Marketing (SEM)
|
Australian MODx web hosting
, secure, fast & 100% MODx compatible
rthrash
Foundation
Posts: 9,575
Re: How do you get keywords?
«
Reply #13 on:
Aug 11, 2006, 01:16 PM »
Quote from: bugsmi0 on Jul 21, 2006, 12:59 PM
Is there a difference between these two ?
<meta http-equiv="keywords" content=
<meta name="keywords" content=
the first one is generated when adding the keyword to doc,
do we need both ?
also are the keywords in the list words we should already have inside the doc or does it matter since they will be in the meta
Actually, I think that keywords should only be under the "name" category. I've updated the handling of keywords for the next release. You can find it in the SVN trunk, and it includes a reference link to a website discussing headers and appropriate values.
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
silent
Full Member
Posts: 186
Re: How do you get keywords?
«
Reply #14 on:
Aug 17, 2006, 07:24 AM »
I recently created a Snippet "PageKeywords", based on Tagcloud, which retrieves keywords from the doc's content by matching it against a general word list.
See:
http://modxcms.com/forums/index.php/topic,6426.msg45904.html#msg45904
Logged
Pages: [
1
]
2
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ışı