Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

cbeyls
Archived 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,395
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!

Offline

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

cbeyls
Archived 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,395
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!

Offline

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

cbeyls
Archived 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,395
Website

Re: [plugin] [ORPHAN] cbs_category_list

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

Offline

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

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
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?

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,395
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.

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

#11 2005-10-07 20:14:29

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

Re: [plugin] [ORPHAN] cbs_category_list

Hi trailgirl, tried both before you posted and it did not work. In fact, it quite ruined the main links which went white on hover, on a white background.

I have this now which works ok, but does not give me an “active” state. That is the only thing that does not work yet. Grrr!!

<code>
.cbs_category_list {
margin: 0;
margin-bottom: 10px;
padding: 0;
list-style: none;
}

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

.cbs_category_list a {
color: #2F3863;
text-decoration: none;
}

.cbs_category_list a:hover {
color: #fff;
text-decoration: none;
}
.cbs_category_list a:active {
color: #fff;
text-decoration: none;
}
</code>

Offline

#12 2005-10-07 20:21:01

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

Re: [plugin] [ORPHAN] cbs_category_list

Correction:

<code>
.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, #left a:visited {
color: #2F3863;
text-decoration: none;
}

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

Is also ok, except for the active state! Double Grrrr!!

Offline

Board footer

Powered by FluxBB