x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

Keywords

This appears to have been abandoned.  Solspace.com has the excellent Tag Module which is an excellent module to use for this purpose.

___

A note on usage: Although this plugin allows some interesting things, it’s incredibly processor intensive. The plugin is almost as big as the entire weblog module, and due to the way plugins are instantiated for each entry shown, it’s terribly inefficient. A load problem on a site recently turned up that this plugin was the culprit. It required a huge amount of memory and induced a lot of processor load. If you have a site with significant traffic, or if you are not hosted on a box with VERY solid specs, you’re advised not to use it. (Thread)

‘’’ Andy and Phoebe are working on a Keywords Module. See this thread

Phoebe on the forums has started working on a stripped down version of this plugin. Please watch this thread for information on that. --LisaJill 22:03, 8 Aug 2005 (CDT)

This plug-in does not work with EE 1.3.x and greater, though it can probably be patched to work. Development has ceased.--Ahc 19:08, 31 Jul 2005 (CDT)

This page has information about using the Keywords Plugin for EE. For questions and discussion, check out the Talk page.

Frequently Asked Questions

How do I limit the number of returned keywords in the formatted list?

I asked this a number of times, and in the EE Forums Spacey310 got me on the right track to create the fix.

In the pi.keywords.php file edit the switch statment starting at line 1267 to read as follows:

switch ($TMPL->fetch_param("keyword_sort"))
{
case "count":
asort($keywordlist);
break;

default:
if (
$TMPL->fetch_param("returnlimit")) {
$keywordlist
=array_splice($keywordlist,0,$TMPL->fetch_param("returnlimit"));
}
uksort
($keywordlist, "strnatcasecmp");
}

if ($TMPL->fetch_param("keyword_sort_order") == "desc")
{
$keywordlist
= array_reverse($keywordlist, true); // preserve keys
}


The code that was modified is in the default: case statement.

Now in your templates, where you call the formatted keyword list, add returnlimit=number to the tag to limit the returned data to number keywords. For example, my tags page uses the following tag to call the plugin:

{exp:keywords:weblog_keywords keyword_fields="keywords"
weblog="john" font_largest="30" font_smallest="9" backspace="55" returnlimit="150" }
<span style="font-size: {font_size}px">
<
a style="text-decoration:none;margin-bottom:10px;background:none"
href="<path_to_keyword_page>/{keyword}">{keyword}</a></span>
<
span style="font-size: 9px;color:#ccc"></span>
{/exp:keywords:weblog_keywords}


How do I show all the keywords associated with an entry?

Inside the {exp:weblog:entries}, include the following tag:

{exp:keywords:entry_keywords entry_id="{entry_id}"
keyword_fields="keyword_field_short_name"
backspace="3"}
{keyword}
,
{/exp:keywords:entry_keywords}

----

Can I give visitors a clickable list of keywords to show other articles with the same keyword?

Yes. Define a template called, say, weblog/article_list that will be invoked with a keyword in the third segment of the URL (e.g., <nowiki>http://yoursite.com/path/to/ee/weblog/article_list/keyword</nowiki>).

In this template you’ll put the following tag:

{exp:keywords:entries keyword="{segment_3}"
keyword_fields="keyword_field_short_name"
weblog="weblog1"}
<a href="{path=weblog/comments}{url_title}">{title}</a>
<
br />
{/exp:keywords:entries}

Then anywhere you’re showing a list of keywords, simply include a link to the weblog/article_list page:

<a href="{path=weblog/article_list}{keyword}">{keyword}</a>

Further reading: Showing your custom tags at Technorati

Category:Plugins

Categories: