Textpattern Forum

You are not logged in. Register | Login | Help

#1 2005-10-05 17:19:10

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

[plugin] [ORPHAN] cbs_category_list

Description

This simple plugin is basically equivalent to category_list, excepted that it is section-sensitive and only lists article categories with the article count next to the category.

Categories are displayed using their title and article count for the selected section and sorted alphabetically by title.

If no article is found in the section for a category, this category will not be shown.

Important

This plugin only works with Textpattern 4.0.1 and above. Please upgrade if required.

More information

For complete information about the plugin, please look at the official page on the Textpattern Resources Site.

Last edited by cbeyls (2005-10-05 17:20:05)


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

#2 2005-10-05 17:20:57

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,187
Website

Re: [plugin] [ORPHAN] cbs_category_list

Its a very nice plugin. I have posted on the official page to ask if you are likely to add the ability to remove the article count – if you can the plugin would be perfect!


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#3 2005-10-05 17:34:19

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

Re: [plugin] [ORPHAN] cbs_category_list

I just created this forum thread because people get more interested in the plugin than I expected :) I just made it to fit my needs.

So yes, I’ve seen your request… I was just a bit busy these days. I’ll add the feature very soon – in an optimized way of course – since I see many people will find it useful.

Last edited by cbeyls (2005-10-05 17:34:57)


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

#4 2005-10-05 17:39:45

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,187
Website

Re: [plugin] [ORPHAN] cbs_category_list

Thats great news as it will help me construct a site for a client who absolutely wants the categories to appear on the side of the page. Before I finish planning the site I needed to know if this was possible, otherwise I would have thought of creating a lot more sections instead.

Using categories as menu items in a site design is what a lot of people seem to be looking for, including me, so thanks for your efforts!


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#5 2005-10-05 22:56:35

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

Re: [plugin] [ORPHAN] cbs_category_list

Okay, the new version is available. Enjoy.


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

#6 2005-10-06 21:58:55

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,187
Website

Re: [plugin] [ORPHAN] cbs_category_list

And thank you very much for the wonderful plugin. It just works ;-)


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#7 2005-10-07 10:20:32

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,187
Website

Re: [plugin] [ORPHAN] cbs_category_list

One request: Can you include an option for styling the current link so the user has an idea of where he/she is?


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#8 2005-10-07 13:20:43

grad
Member
From: Poznan, Poland
Registered: 2005-10-04
Posts: 24

Re: [plugin] [ORPHAN] cbs_category_list

One request: Can you include an option for styling the current link so the user has an idea of where he/she is?

A ‘class’ property for active item ‘li’ would do.

Another request: Could you add an option to display child-categories nested (like in stw_category_list)? Of course this would be applicable only if the parent and child categories have any articles.

Offline

#9 2005-10-07 14:02:37

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,187
Website

Re: [plugin] [ORPHAN] cbs_category_list

Yeah must be missing something simple here. Have this:

wraptag = ul
break = li

The cbs_category_list is in the #left div

<code>/* Styling for side links */
.cbs_category_list {
margin: 0;
margin-bottom: 10px;
padding: 0;
list-style: none;
}

#left li { margin: 0; padding: 0; text-align: right; list-style-type: none;
display: block;
}

#left a, a:visited {
color: #2F3863;
text-decoration: none;
}

#left a:active, a:hover {
color: #fff;
text-decoration: underline;
}</code>

The hover and active classes don’t work. Thing is the UL can be tagged only as a class rather than an ID.


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#10 2005-10-07 18:53:55

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

Re: [plugin] [ORPHAN] cbs_category_list

Try…

#left li a, #left li a:visited

and

#left li a:active, #left li a:hover

Offline

Board footer

Powered by FluxBB