Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Important notice: Textpattern forum member makss has patched this plugin several times and improves and keeps it updated regularly. You can get his version on his website.
Current version is said to be not working with the current development version 4.6 of Textpattern (as of 2015_05_05)
Original post
The rss_unlimited_categories enables the assignment of an unlimited number of categories to each article so that you’re not limited to the default number allowed by Textpattern (2) as I originally outlined here.
The plugin will add a multiple select list to your article -> write tab to enable the selection of unlimited categories. The category/article relationships are stored in a new table that is created by the plugin. It also includes several public side tags to display the categories and list articles by category.
The collection of public site tags include:
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.
rss_unlimited_categories_related – Lists related articles by category. This is a replacement for the standard Textpattern related article tag that uses the unlimited category tables instead of the standard Textpattern category 1 and 2 fields.
Details and Docs – working archive link: Details and Docs
Unofficial fix for txp 4.4.1 by ruud
Moderator’s annotation:
Edited to add further note.
– Uli –
Updated link to makss website from http://textpattern.org.ua/patches/rss_unlimited_categories to http://makss.uaho.net/plugins/rss_unlimited_categories
– michaelkpate –
Last edited by michaelkpate (2016-05-14 16:35:33)
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Oh very nice Rob. Who’s a busy boy then?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-01-21 21:30:09
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Brilliant. TxP just got even better.
Offline
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
very very cool, thank you. i will try this out tonight! ;-)
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
This is excellent Rob!
Thanks heaps…
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
this is wonderfully cool rob!!!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Wonderful! Thank you!!
Z-
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
wow. that looks great.
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Thanks everyone for the compliments.
TaeWoo – Thanks for pointing that out. My code inadvertently worked only for /section/ID/title URLs. The v0.1 download is updated.
Offline
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Nice work Rob! Hope this isn’t too off-topic, but I have a question. How do you control the output of the category URLs? Is it just like the old way, with <txp:if_category>
? For some reason I have always had trouble with category pages in Textpattern.
I am trying to implement this for an (as yet unstyled) photoblog template I am working on. Articles are posted to the “archive” section, with the most recent (limit=“1”) appearing on the front page (display on front page = yes). My archive page template simply uses <txp:if_individual_article>
and <txp:if_article_list>
to display permalinked articles and thumbnailed links to them, respectively.
This is a pretty standard setup. Now I’ve got your plug-in outputting the appropriate category links (using linktosection=“archive”). Everybody always says that clean category URLs use the default section’s page template, so I tried using <txp:if_category>
on that page so that those links would output linked thumbnails, like the archive root page. Can you see why I’m getting 404’d on all of them? I’m stumped.
My default page template:
<code>
< txp:if_category>
<body id=“archives”>
<div id=“top”>
< txp:output_form form=“header-nav-form” />
<ul id=“allcats”>
< txp:rss_unlimited_categories_list linktosection=“archive” break=“li” />
</ul>
<h3>Photos filed under < txp:c /></h3>
<ol id=“photothumbs”>
< txp:article form=“archive-form” />
</ol> <!— end photothumbs —>
</div><!— end top —>
<txp:else />
<body id=“current”>
<div id=“top”>
< txp:output_form form=“header-nav-form” />
< txp:article limit=“1” />
</div><!— end top —>
< /txp:if_category>
</body>
</html>
</code>
Last edited by jmuspratt (2006-01-24 12:52:32)
Offline