Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2005-10-08 20:59:18

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: [plugin] [ORPHAN] cbs_category_list

Great plugin. Best feature: It actually displays the title you gave the category, rather than the one created and stored in the database. Yay! No more dashes in your menu… or whatever. Now if I could just find one to do that for “Filed under”….

I’ll have to get the new verion, I suppose, but am very happy with 0.2. “The more they overwork the plumbin’…” and all that, you know. ;)

Offline

#17 2005-10-09 20:25:58

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] cbs_category_list

Infi, what do you mean by “filed under” ? You mean <code><txp:category1 /></code> and <code><txp:category2 /></code> ?

And no, you don’t need to upgrade unless you need the new feature. The code has just been a little bit refactored to fit well the new features but is not slower.

Last edited by cbeyls (2005-10-09 20:31:19)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#18 2005-10-09 21:01:10

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: [plugin] [ORPHAN] cbs_category_list

1. Yes. The TXP tag displays the faux directory name. (There’s a solution, I just haven’t located it yet.)

2. Sections that are set not to appear on the home page are not included in the cbs_category_list. There appears to be no way to remedy that. Could the section attribute perhaps accept more than one spec?

Offline

#19 2005-10-11 00:19:31

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] cbs_category_list

infi, re: #2 – I can’t seem to replicate that … on a 4.0.1 install with section set not to appear on front page – when in that section, category list works fine…

cbeyls – could you add an attribute for clean urls in the form /section/category – rather than /section/?c=category … ?

Offline

#20 2005-10-11 01:06:38

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: [plugin] [ORPHAN] cbs_category_list

Re: #2… What I get (when no section attribute is set) is a list of categories for the current section and any sections(s) established as front page material. Categories for TXP sections set not to appear on the front page are not shown on the front page, but only the section(s) in question.

I bet that was about as clear as mud. :\

Help text does say it’s section-sensitive. Actually setting a section attribute (default, for example) shows categories from that section everywhere, regardless. Unable to enter more than one section attribute, however, the hidden sections’ categories are never listed, unless one is actually in that section. (And now, it’s Mississippi mud, I’m sure.)

What I was hoping for is a multiple section attribute so that I might list all sections’ categories (front page or no) as a menu to carry site-wide. I’m misunderstanding something, no doubt, and continue to fiddle, which has been quite fun, actually. _

Last edited by Infi (2005-10-11 01:09:23)

Offline

#21 2005-10-11 01:36:13

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] cbs_category_list

rss_suparchive_bycat might do what you want… set the ‘showcatsonly’ attribute on; as you say, this plugin’s aim is to be section-sensitive

second feature request for cbeyls — if you’re on a category list, could a class (like ‘active-cat’) be added to the relevant category list item?

so it can be styled differently, as you’re on that page

dank u wel

Offline

#22 2005-10-11 01:39:11

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: [plugin] [ORPHAN] cbs_category_list

The unfortunate drawback to that, though, is that I get the “clean URL” wording stored rather than the title I gave it, which means… instead of Web/Info Design, I get Info-Design. Bleech. :D

But, as I say, I’ll keep fiddling. I have cbs, stw_category_tree and rss_superarchive_bycat now. One of them is bound to do what I want. lol

Offline

#23 2005-10-11 01:41:59

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] cbs_category_list

yeah that’s what I’ve been finding when going down the category road for static site design — I go round in circles

Last edited by nardo (2005-10-11 01:42:47)

Offline

#24 2005-10-12 20:28:17

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] cbs_category_list

Infi,

  1. Displaying the actual title instead of the category name for <code><txp:category1 /></code> and <code><txp:category2 /></code> can be done simply by setting the <code>title=1</code> attribute, as you can see in Textbook.
  1. The aim of this plugin is to display categories related to a section. By default it’s section-sensitive but you can force the section using the <code>section</code> attribute. If you want to display all categories of all sections, just use the default section plugin provided with Textpattern, <code><txp:category_list /></code>. Of course it’s not perfect because it doesn’t provide the possibility to display the category titles instead of names, but I hope it will be fixed in a new release of Textpattern. The aim of my plugin is not to replace the default one, it’s just complementary. Or maybe I didn’t understand your question.

Last edited by cbeyls (2005-10-12 20:46:54)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#25 2005-10-12 20:34:30

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] cbs_category_list

Nardo,

  1. I use a standard TXP function to generate the URL. This function is supposed to create clean URL’s. Actually in the current TXP version, if your URL contains a category, this only works with the default section, so all other sections have messy URL’s but it’s not my plugin’s fault. I hope it will be fixed soon. The plugin code will remain the same. I don’t want to hard-code a function that is already present in Textpattern just because it is buggy. But even if I hard-code a clean URL it won’t work without hacking Textpattern’s code (try to type the URL yourself in your browser bar and see the result).
  1. The active class feature was already requested by jstubbs. Just look at that post just above. I’ll add it in a few hours.

And finally, I started writing this plugin because I tried rss_suparchive_bycat and didn’t like it at all. It made my website twice slower and the code was huge.

Last edited by cbeyls (2005-10-12 21:03:20)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#26 2005-10-12 23:20:13

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: [plugin] [ORPHAN] cbs_category_list

Thanks for the tip on #1. (I knew it was something simple. :rolleyes: ) I’ll continue on with cbs; it’s the best I’ve seen for the task so far. Thanks so much for sharing!

Offline

#27 2005-10-12 23:50:05

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] cbs_category_list

thanks cbeyls – good points all – and yep this a very mean and clean little plugin

re: working section/category URLs – I found it as easy as installing zem_rewrite (thanks btw to Andreas for the tip) – and will run with it on a static site using categories as subsections

so I guess my question is: how do you hack your plugin to remove those “/?c=” three little characters? : ) if I understand you, it means copying a txp function into the plugin first, then modifying that… ? would certainly throw some ca$h at you if you’d consider doing a parallel version of your plugin…

=======

feature request #311231:

a version which outputs a drop-down menu — like zem-popup-cat, which would satisfy my needs except it outputs the category name not category title

Last edited by nardo (2005-10-13 02:08:58)

Offline

#28 2005-10-13 13:03:25

mearso
Member
From: Wales
Registered: 2004-03-25
Posts: 18
Website

Re: [plugin] [ORPHAN] cbs_category_list

Cheers for this plug-in. I’m just waiting for the clean URLs on categories to work.

Hope it comes soon!

Offline

#29 2005-10-14 00:07:21

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] cbs_category_list

Nardo,

Which URL form are you expecting actually? You mean a special URL form made possible by using another plugin which is zem_rewrite ? This means the plugin would require another one to work ?

As for the cash, thank you but I have little spare time and I want to preserve it by doing things I like to do ;) For example, my new website is barely opened and I still have tons of things to add to it. Furthermore, a TXP plugin is simple and not worth paying for it I think.

So, now I’m gonna add this “active category class” feature. For the clean URL’s thing, I repeat that it is Textpattern that generates the URL’s and is able to recognize them afterwards, so if you can find a clean URL syntax for categories and sections that is natively recognized by Textpattern, I’ll add it. If you need another plugin, I’ll not add it. Last possibility: hacking Textpattern code and keeping the plugin code unchanged while waiting for this feature to be implemented in the new versions of Textpattern.

Finaly, for the drop-down, why don’t you ask to zem the author of zem_popup_cat ? ;)

Last edited by cbeyls (2005-10-14 00:28:56)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#30 2005-10-14 01:57:57

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] cbs_category_list

which url form?
“/section/category” as opposed to “/section/?c=category”

thank you for your consideration, it was a request – and you’ve answered it

re: drop-down – I suggest it because I think it would add to the usefulness, completeness and versaility of your plugin! at the moment people are using two or three different category plugins which each lack a little something

Last edited by nardo (2008-02-04 03:52:05)

Offline

Board footer

Powered by FluxBB