MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Jul 05, 2009, 08:44 PM
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
»
How do you get keywords?
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Print
Author
Topic: How do you get keywords? (Read 5263 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,814
damn accurate caricatures...
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
CTO @
Collabpad
work
productively.
work
intelligently.
work
together
.
MODx
Development
|
SVN
|
Fisheye
xPDO
Development
|
SVN
|
Fisheye
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
Frank Zappa
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,814
damn accurate caricatures...
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
CTO @
Collabpad
work
productively.
work
intelligently.
work
together
.
MODx
Development
|
SVN
|
Fisheye
xPDO
Development
|
SVN
|
Fisheye
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
Frank Zappa
yentsun
MODx Russia
Committed to MODx
Posts: 518
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
http://yentsun.com
- персональный сайт
doze
Coding Team
Posts: 3,662
....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
New MODx wiki!
Please help up with documentation efforts! ||
Old Wiki
kandyghost
New 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,814
damn accurate caricatures...
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
CTO @
Collabpad
work
productively.
work
intelligently.
work
together
.
MODx
Development
|
SVN
|
Fisheye
xPDO
Development
|
SVN
|
Fisheye
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
Frank Zappa
bugsmi0
Sr. Member
Posts: 356
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,814
damn accurate caricatures...
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
CTO @
Collabpad
work
productively.
work
intelligently.
work
together
.
MODx
Development
|
SVN
|
Fisheye
xPDO
Development
|
SVN
|
Fisheye
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
Frank Zappa
bugsmi0
Sr. Member
Posts: 356
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: 137
"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: 10,471
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 (Revolution 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
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> Front-end Document Management
=> 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
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.3
===> 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
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Webworker Lounge
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
International Support & Translations
-----------------------------
=> Internationalization
=> Bulgarian
===> Поддръжка
=====> Често задавани въпроси
=====> Инсталация
=====> Модули, Плъгини, Снипети и код
=====> Дизайн и Шаблони
===> Документация, Ръководства и Превод
=====> Документация
=====> Ръководства
=====> Превод
===> Общество
=====> Съобщения
=====> Представете се
=====> Представете сайта си
=====> Дискусии извън MODx
=> Chinese
=> Czech
===> Oznámení
=====> Důleitá oznámení/novinky
=====> Bezpečnost
===> Komunita
=====> Oznámení
=====> Představte se, prosím
=====> Ukázky práce
=====> Různé aneb cokoli co se jinam nehodí
===> 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)
=> Dutch
===> 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
=> Filipino
===> 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
=> Finnish
===> 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
=> French
===> 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
===> 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
=> Hebrew
===> הכרזה
=====> חדשות חשובות
=====> אבטחה
===> תמיכה
=====> התקנה
=====> תיעוד, מדריכים ותרגומים
=====> עיצוב ותבניות
=====> שאלות נפוצות
===> תיעוד, מדריכים ותרגומים
=====> תיעוד
=====> מדריכים
=====> תרגומים
===> קהילה
=====> הודעות
=====> הצג את עצמך
=====> אתרים לדוגמא
=====> כללי
=> Irish
=> Italian
===> 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
===> サポート
=====> 良くある質問
=====> インストール
=====> モジュール・プラグイン・スニペット・本体
=====> デザインやテンプレート
===> マニュアル・テュートリアル・翻訳
=====> マニュアル
=====> 事例集、テュートリアル
=====> 日本語化
===> コミュニティ
=====> お知らせ
=====> MODxサイト展示場
=====> 自己紹介
=====> 雑談
=====> 国産リソース
=> Persian - فارسي
===> پشتيباني
=====> راهنما
=====> نصب
=====> ماژول , پلاگین ها , کد ها و جزییات
=====> طراحی و قالب ها
===> مستند سازی , آموزش ها و ترجمه ها
=====> مستند سازی
=====> آموزش ها
=====> ترجمه ها
===> انجمن ها
=====> اخبار
=====> معرفی کردن خود
=====> نمایش دادن سایت ها
=====> بحث های عمومی و سایر موضوعات
=> Polish
===> 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
===> 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
===> Поддержка
=====> ЧАВО (FAQ)
=====> Установка
=====> Модули, плагины, сниппеты и код
=====> Дизайны и шаблоны
===> Документация, Уроки, Перевод
=====> Документация
=====> Уроки
=====> Перевод
===> Сообщество
=====> Объявления
=====> Представьтесь публике
=====> Галерея сайтов
=====> Диван
=> Scandanavian
===> 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
=> Slovak
=> Spanish
===> 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é
=> Swedish
=> 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ışı