rborn
Forum Replies Created
-
Any ideas on this?
Found out why the “+” sign was always showing. In kbe_style.css is the following:
.kbe_category span.switch img { margin: 0px; content: url("images/kbe_icon-plus.png"); }
This “content” always adds the plus sign. As far as I can tell, the PHP file will determine this, if “+” or “-“. Removing the “content” property and making the above corrections to the PHP file, seems to work well.
I obviously don’t know how this works, but I changed it to the following and the errors go away and I get the correct paths, but the “-” icon does not show, the “+” is always displayed.
jQuery('div.kbe_category > span.switch').click(function () { var tree_id = jQuery(this).parent().attr('id'); if (jQuery(this).hasClass('open')) { jQuery(this).parent().find('div:first').slideUp('fast'); jQuery(this).removeClass('open'); jQuery(this).html('<img src="<?php echo plugins_url('template/images/',__FILE__) ?>kbe_icon-plus.png" />'); } else { jQuery(this).parent().find('div:first').slideDown('fast'); jQuery(this).html('<img src="<?php echo plugins_url('template/images/',__FILE__) ?>kbe_icon-minus.png" />'); jQuery(this).addClass('open'); }
I am seeing this same issue. I have a Category and then want to sub-categorize everything in it into each letter of the alphabet, to make finding things easier and for organizational purposes. So I make other (sub)categories named “A”, “B”, “C”…”Z” and assign them to the Parent Category. For any Article, if I assign say “A” to them only, then the Main Category will show “Articles 0”. If I assign them to both the main category and the sub-category (“A”), the count would of course be correct for the main category. Not sure which would be the preferred method but it would make most sense to me for the Parent Category to list the Article count of all the sub-articles in it.
Also, not sure if this was intended to be done or not, but you can create sub-categories of sub-categories. However, they do not display as I would think they should. For example, and I know this is getting a bit detailed, but say I wanted to make a Parent Category called “Recipes”, then a sub-category of that called “A-E”, then a sub-category of that called “A”. I can do this in the admin panel and the fist sub-category shows as “-A-E” while the second will show as “–A”. But, all the sub sub-categories do not show listed under the sub-categories on the Knowledebase page, the sub sub-categories show the same as the sub-categories with no special heading and no icon (+) next to them. I am guessing that this would require another level of CSS to get this to show so that each sub-category would have a heading, icon (+) and number of articles. Just wondering if this is correct or not and how it should work.
I changed the following in “kbe_style.css”. It was 980px and I changed it to 960.
.kbe_content_full{ width: 960px !important;
I am no a CSS expert but #kbe_container has a width of 960px so I think these should match, or at least #kbe_conatiner should be greater than .kbe_content_full. Changing either one so they are the same seems to work for me.