Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-07-11 09:09:39

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 344
Website

cbe_keywords: yet another keywords/tags plugin

This is a personal interpretation of the keywords field, though it was inspired by others, such as tru_tags of course, and chh_keywords.

Mine was developed with a flash tagcloud in mind, and turned out to offer other possibilities, as decribed in the plugin page or Textpattern resource site.

— Changelog:

  • 04 Apr 13 – v0.2 – <txp:cbe_keywords_related /> : new values (older and newer) for time attribute
  • 11 Jul 11 – v0.1 – Initial release

Last edited by CeBe (2013-04-04 11:03:13)

Offline

#2 2011-07-13 16:22:57

admi
Member
From: BY
Registered: 2007-12-10
Posts: 143
Website

Re: cbe_keywords: yet another keywords/tags plugin

I got just plain text key words, no hyper links. Is it possible to get hyperlinked keywords?

Offline

#3 2011-07-13 16:38:31

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 344
Website

Re: cbe_keywords: yet another keywords/tags plugin

Yes :

<txp:cbe_all_keywords><a href="{your link here}"><txp:cbe_keyword /></a></txp:cbe_all_keywords>

If you want your keywords to reflect their importance with their size, for example :

<txp:cbe_all_keywords minfontsize="8" maxfontsize="22">
  <a href={your link here} style='font-size:<txp:cbe_keyword_ratio />px;'><txp:cbe_keyword /></a>
</txp:cbe_all_keywords>

Finally, to make your keywords initiate a search, like in did in the sidebar of my site to build the wp-cumulus tagcloud:

<txp:cbe_all_keywords minfontsize="8" maxfontsize="22">
  <a href='<txp:site_url />?q=<txp:cbe_keyword />' style='font-size:<txp:cbe_keyword_ratio />px;'><txp:cbe_keyword /></a>
</txp:cbe_all_keywords>

Last edited by CeBe (2011-07-13 16:53:32)

Offline

#4 2011-07-14 06:34:39

admi
Member
From: BY
Registered: 2007-12-10
Posts: 143
Website

Re: cbe_keywords: yet another keywords/tags plugin

Merci beaucoup, it seems a very useful plug-in.

Offline

#5 2011-08-19 20:55:30

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 177
Website

Re: cbe_keywords: yet another keywords/tags plugin

Sorry, I did not quite catch the reason of linking to a general query ?q= instead of <txp:permlink /> to articles with assigned words from <txp:keywords /> and <txp:custom_field />?

Offline

#6 2013-04-04 11:11:58

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 344
Website

Re: cbe_keywords: yet another keywords/tags plugin

An idea coming from Czech Republic (sorry, I can’t find your name in the forum) : having the ability to list related articles only if they are older, or newer, than the one currently displayed.

So I added values older and newer for the time attribute of <txp:cbe_keyword_related />, and some examples in the help.

Offline

#7 2016-04-25 17:30:05

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,169
Website

Re: cbe_keywords: yet another keywords/tags plugin

In order to get this working with 4.6Dev,

I updated some code for the cbe_sql_where function:

Original:

$expires = $publish_expired_articles
              ? ""
              : "AND (Expires > now() OR Expires = ".NULLDATETIME.")" ;

New:

$expires = $publish_expired_articles
               ? ""
               : "AND (".now('expires')." <= Expires OR Expires IS NULL)"; 

I didn’t actually test it though because I was using the plugin for something that didn’t need this.

Offline

Board footer

Powered by FluxBB