Using search module to generate meta keywords

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
studip101
Forum Members
Forum Members
Posts: 15
Joined: Wed Jun 13, 2007 8:31 am

Using search module to generate meta keywords

Post by studip101 »

Hi everyone,

I want to use the search module to generate meta keywords for each page. I have this working for the most part already using the code {search action=keywords count=10} in my template. However, the problem is that I have word stemming turned on in the search module preferences, so the keywords that are output are word-stemmed. I could turn off word stemming all together and I assume that that would resolve the problem, but I really want to leave word stemming on for normal searches. Is there any way to leave word stemming on for normal searches but have the search module output full keywords.


Thanks
zigge
Forum Members
Forum Members
Posts: 75
Joined: Tue Jan 22, 2008 6:53 pm

Re: Using search module to generate meta keywords

Post by zigge »

I'm interested how you used this to automagically generate metadata for the pages. Search Engine optimization is for me untouched area, and I would like to find an automated way of doing that meta-stuff that I never seem to get time to dig in to.


Mats
studip101
Forum Members
Forum Members
Posts: 15
Joined: Wed Jun 13, 2007 8:31 am

Re: Using search module to generate meta keywords

Post by studip101 »

to have the search module generate meta keywords automatically (although, to be honest, the meta keywords tag doesn't make that big a difference in seo, i was using the feature for another reason) just insert the code ' in your template (without the single quotes of course, and assuming your using xhtml).

The problem i was having is that, if you enable word stemming to make your search results better, the keywords output by the search module are also word stemmed, and therefore don't work very well for meta keywords.
Post Reply

Return to “Developers Discussion”