Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-10-14 01:57:59

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. It just adds the active category styling.


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

#32 2005-10-14 08:42:27

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

Re: [plugin] [ORPHAN] cbs_category_list

Thank you cbeyls! Works beautifully as expected. Only a small problem, which is not related to the plugin but rather the links…

I have a test site nearly ready here: http://www.solborg.fhs.no/txp/linjer You can see the sub-categories on the left. The section is called “linjer” and the plugin is called like so: <code><txp:cbs_category_list wraptag=“ul” break=“li” parent=“linjer” activeclass=“active” /></code>

Only issue is this – if I click on the subcategories produced by cbs_category_list the active state (of a white link) works, but if I click on one of the articles in “linjer” it does not. Basically, each page is static and there is only one article per subcategory.

cbeyls mentioned earlier that it is not possible to style with a:active on a multiple page.

Back to my example, if one were to click on “Modulfag” in the article list, one would get this as a link: http://www.solborg.fhs.no/txp/linjer/modulfag

Clicking on the subcategory list produced by cbs_category_list gives: http://www.solborg.fhs.no/txp/linjer/?c=Modulfag

Anyone know of a way around this? Scratching my head. My styles:

<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:link {
color: #2F3863;
text-decoration: none;
}

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

Note: .active is the activeclass.

Offline

#33 2005-10-14 09:33:36

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

Re: [plugin] [ORPHAN] cbs_category_list

jstubbs – I may be wrong… but as this plugin is faithful to the textpattern url schema, it would require the “?c=” in the URL to know that it is currently in a category list

so perhaps the options are either to live with the messy clean category URL (“?c=”) throughout your site or hand-code your category lists (so you can give each li an id and dynamically insert a body class based on category or section)

Offline

#34 2005-10-18 14:47:11

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

Re: [plugin] [ORPHAN] cbs_category_list

jstubbs

This is not a bug at all. If the URL does not provide any category information, my plugin cannot retrieve it from the context. This is only the case for article lists, not individual articles. But when you display an individual article, you have access to category1 and category2 so you can put them in evidence in some other way.


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

#35 2006-01-09 12:47:34

Thirteen
Member
Registered: 2006-01-09
Posts: 40

Re: [plugin] [ORPHAN] cbs_category_list

EDIT: I’ve got it to work- After some more fiddling, I realized I had to use the if_category to make it show…

I’m very new to textpattern and am still slowly familiarizing myself with how categories/subcategories work; please forgive me if I’m asking something very dumb.

I’ve installed this plugin and all seems to be working well where it’ll list my categories out. However, once I go to click on any category link, it doesn’t take me to the page that should display the articles. Rather, it just displays the category listing page all over again. I’m thinking that I must be doing something wrong, but I’m not sure where.

Basically, the way I have the site set up is in main sections like about, tutorials, downloads, etc etc. So when you click on, say, downloads- I have it so that it’ll display a list of categories like wallpapers, skins, icons, etc. Up till here, everything works fine. However, when I click on any of those categories…it doesn’t go to said category.

Any help anyone is willing to give me would be so greatly appreciated. Thank you and once again, I’m sorry if the mistake I’m making is something entirely stupid!

Last edited by Thirteen (2006-01-10 12:52:28)

Offline

#36 2006-01-25 18:10:06

martinship
New Member
From: Santa Fe, NM
Registered: 2006-01-22
Posts: 6

Re: [plugin] [ORPHAN] cbs_category_list

When I try to install this plugin, it crashes Apache’s PHP5 parser for Win32. Was it designed for php4? Has it been tested on any wamp setups? I’ve installed pleanty of other plugins successfully on this setup, but this one just won’t go.

If there’s a chance rebuilding it from the source would work, I could give that a try too.

Offline

#37 2006-01-29 19:50:38

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [plugin] [ORPHAN] cbs_category_list

Hi! Thanks for this plugin!

At the moment, I’m running in test-mode. I get this error:

<code>tag_error <txp:cbs_category_list wraptag=“p” break=“br” showcount=“true”/> -> Warning: join(): Bad arguments. on line 1416</code>

This error occurs, when I access another section.

Last edited by The-Exit (2006-01-29 19:51:16)

Offline

#38 2006-02-03 17:36:24

martinship
New Member
From: Santa Fe, NM
Registered: 2006-01-22
Posts: 6

Re: [plugin] [ORPHAN] cbs_category_list

I see this error when running in test mode on a LAMP configuration as well. In fact, this plugin doesn’t work very well no matter what setup I’m using.

Offline

#39 2006-04-06 15:48:06

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] cbs_category_list

label and labeltag don’t seem to be working. It just doesn’t output anything. Any ideas?

Offline

#40 2006-04-06 15:52:38

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] cbs_category_list

Never mind, I was missing a closing quote. But I have another problem, the label still shows up even though all the categories that it is supposed to show are empty at the moment.

Offline

#41 2006-04-15 11:37:22

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,677
GitHub Twitter

Re: [plugin] [ORPHAN] cbs_category_list

Merci Christophe pour ce merveilleux plugin!

De quelle manière faudrait-il modifier le code source afin d’obtenir le décompte des articles (affiché entre parenthèses) afin de l’inclure dans le titre du lien, afin d’obtenir ceci :
<code>
<li><a href=“http://www.mysite/category/”>Belgique (3)</a></li>
</code>
Cela permettrait un meilleur contrôle sur les lignes de listes.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#42 2006-04-23 20:39:03

marvix
Member
Registered: 2006-04-06
Posts: 27

Re: [plugin] [ORPHAN] cbs_category_list

I get this error :
<code>
tag_error <txp:cbs_category_list wraptag=“ul” break=“li” section=“english” parent=“top menu” activeclass=“active” /> -> Warning: join(): Bad arguments. on line 1425

<txp:cbs_category_list wraptag=“ul” break=“li” parent=“top-menu” activeclass=“activecat” />
</code>

what the wrong ?!

Last edited by marvix (2006-04-23 20:46:23)

Offline

#43 2006-04-23 21:13:45

marvix
Member
Registered: 2006-04-06
Posts: 27

Re: [plugin] [ORPHAN] cbs_category_list

I think I found the error … when the category empty i get this error!

Offline

#44 2006-04-23 23:06:45

mrfahrenheit
New Member
Registered: 2006-04-21
Posts: 8

Re: [plugin] [ORPHAN] cbs_category_list

How would I change this plugin so that it outputs article count and the word article or articles accordingly?

Offline

Board footer

Powered by FluxBB