Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
andnewer
) fortime
attribute - 11 Jul 11 – v0.1 – Initial release
Last edited by CeBe (2013-04-04 11:03:13)
Offline
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
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
Re: cbe_keywords: yet another keywords/tags plugin
Merci beaucoup, it seems a very useful plug-in.
Offline
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
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
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