Thread:Extension talk:CategoryTree/Problem with namespaces in category tree

We are using the category tree on a page to allow users to "browse" for a Case via Jurisdiction. We have added two namespaces to our wiki because we did have some pages with identical names. The two new namespaces are "Case" and "Statute". For this page we want the tree to show all of the categories and subcategories and then all of the pages in the namespace Case in those categories or subcategories. We do not want to see anything in the main namespace or the Statute namespace.

Code for the tree on this page: This is what we would like to see happen:

(Parent Category: Jurisdiction)

State --> California --> People v. John Doe (2012)

Federal --> Supreme Court --> Miranda v. Arizona (1966)

This is what does happen:

State (4) --> California (17) --> nothing found

Federal (9) --> Supreme Court (2) --> nothing found

Using the above code we see the categories and subcategories, items in the main namespace but none of the pages in the namespace "case". The count next to each category and subcategory is correct, it reflects all of the pages within including those pages in the "Case" namespace. If you click on something that we know has pages in the Case namespace you see "nothing found"

Here are the results from some trial and error:

namespace= case --> I see categories, subcategories, items in the main namespace, nothing in the case namespace

namespace= statute --> I see categories, subcategories, items in the main namespace, nothing in the Statute namespace

namespaces= case, category --> see everything in all namespaces (category, main namespace, statute and case)

namespaces = statute, category --> see everything in all namespaces (category, main namespace, statute and case)

namespaces= case, statute --> see everything in all namespaces (category, main namespace, statute and case)

I believe the issue may exist beyond the category tree (I have a feeling it might be in the configuration somewhere but have no idea where) because I just went to the categories page, clicked on the (+) on one of the categories and saw "nothing found" but when I clicked to open the subcategory I saw all of the files (the files are only in the Case or Statute namespace)

Another question: Not that important but I figured I would ask: Is there a way to have the category tree list certain categories but stop at a certain level showing subcategories:

Ex. Jurisdiction (main category) --State

---California ("Case" namespace pages are here)

Statute

-Penal Code

If the pages I want are under California, anyway to stop if from showing Statute, Penal Code, etc.? (The goal of the page is to have someone "browse" for cases from x, y, or z state)

Thank you in advance!