Unlimited Categories for Textpattern Updates

While building the Popular Wedding Favors site I was able to add a ton of new functionality to the rss_unlimited_categories plugin and work in some fixes as well. Some of the fixes are based on posts and requests in the TXP forum and some were based on my own requirements. I’m not sure that I was able to fix everything that’s been reported because the thread is quite long.

The changes to the plugin are as follows. Please note, this might not be a complete list. There were so many changes I might have lost track of a few, but the plugin documentation should be up-to-date. Check the plugin help file for details.

admin interface

  • fix category multi select list indenting
  • add preferences tab for the plugin under the extensions tab
  • redesign plugin help for readability

rss_unlimited_categories_article_list

  • fix no article tag warning in debug mode
  • add usechildren attribute
  • add filtering

rss_unlimited_categories_list

  • fix limit and offset attributes
  • add showallcount and allcountlabel attributes
  • add usemessy attribute

rss_unlimited_categories_filedunder

  • add parent attribute

new tags

  • rss_unlimited_category_count
  • rss_if_article_unlimited_category

As always, please report problems with the latest version on the plugin’s forum thread.

Comments

5. January 2007

I have a list that is set to sort by a custom field.

The data in the custom field is prices.

I am running into trouble because although the sort is working correctly, it places the entry $3,250,000 on top of the entry $525,000.

This is the code I am using to work the sort:

Rob any guidance would be greatly appreciated.

Thanks again for all your great plug ins.

Randy Levine

5. January 2007

Randy – For the sortby field you’ll want to you something like this:

sortby=”(prices + 0)”

That will make MySQL do a numeric sort.

Rob

9. January 2007

Thanks. I will test it out.

One other quick question, can I sort by one field and then another. ie first price and then title.

Randy Levine

9. January 2007

Yes, you should be able to use:

sortby=”(prices+0), title”

The sortdir attribute would apply to the last field in the list. So you could also try:

sortby=”(prices+0) desc, title”

to sort prices in descending order (for example).

Rob

10. January 2007

Rob:

Thanks for all your help. One last question – I promise.

On my current project, I am using your plug in (I have many categories) and when people make a selection they are sent to a list of the articles.

Currently their selection method is by pull downs located on the home page. They can only select from one pull down list and only one item on that list. Sample pull down categories are price, area, size etc.

Can you shed some light on how I can set it so that user can do an “advance search” and select multiple categories to narrow the search. I am fine if the advanced search needs to be put on a separate page and need possibly to be converted from pull downs to another methos. I used pull downs to save real estate on the home page.

Thanks again in advance for all the guidance.

And I promise this is the last question.

Randy Levine

10. January 2007

Rob:

Just a follow up on the sorting issue. I attempted your first suggestion, but unfortunately with no luck.

If I try your code out the table comes up blank. If I switch the field name to “custom_#” it returns a result but it is all out of order …

I will keep pluggin away, but just wanted to let you know …

Randy Levine

21. April 2008

Hi. I added unlimited categories to a textpattern installation I’ve been playing with. The list appears in my article writing window just fine and I’m able to select multiple categories per post.

However, I need to create links that organize my data in a given section by category. I had been appending ?c=category to my section URLs to do this. When I try that with an entry where I’ve used this plugin to set the categories, no articles are returned after clicking a link.

Also, if I look into the categories tab in textpattern, all categories for which I tagged articles via unlimited categories show up as containing 0 articles.

Is there any documentation i can look at to sort these issues out? Hints would be fine too. Thanks so much!

seth exis

Commenting is closed for this article.

Textpattern Solutions

Textpattern Solutions

Textpattern Solutions is the first book published on Textpattern.

details at friends of ED or the official book website.

buy it at amazon.com