rss_unlimited_categories: unlimitierte Kategorieanzahl und Tagging
Autor: Alex
Rob Sable hat mal wieder zugeschlagen. Mit seinem neuesten rss_unlimited_categories Plugin kann man Artikeln soviele Kategorien zuweisen, wie man will. In TXP selbst sind ja nur 2 Kategorien pro Artikel möglich. Zudem kann man mit dem Plugin die Kategorien auch als gewichtete Tagliste ausgeben.
Das Plugin besteht aus 4 Tags:
- rss_unlimited_categories_filedunder – Lists all categories assigned to the current article.
- rss_unlimited_categories_cloud – Displays a weighted list of all categories as a tag cloud.
- rss_unlimited_categories_list – Displays a list of all categories with the number of posts in each.
- rss_unlimited_categories_article_list – Lists articles by category. This is an unlimited category aware replacement for the standard Textpattern article list tags.
Wer das Plugin nutzen möchte, bisher aber die TXP eigenen Kategorielistings benutzt hat, muß die ‘alten’ Artikel-Kategorie Verknüpfungen in eine neue MySql Tabelle kopieren. Das geht über PhpMyAdmin mit den beiden folgenden MySql Statements:
INSERT INTO textpattern_category (article_id, category_id) SELECT t.id, c.id FROM textpattern t LEFT JOIN txp_category c on t.category1 = c.name where c.type = 'article' and t.category1 != '';
INSERT INTO textpattern_category (article_id, category_id) SELECT t.id, c.id FROM textpattern t LEFT JOIN txp_category c on t.category2 = c.name where c.type = 'article' and t.category2 != '';
Alle Infos zum Plugin im Forum sowie auf wilshire.com.