I've got a setup that is using Categories and having a difficult time understanding why the parent category isn't being added to the selection. My setup is:
Categories
root
-group1
--sub group1
--sub group2
-group2
--sub group1
--sub group2
-group3
Repeater WHERE clause
{%"DocumentID IN (SELECT DocumentID from CMS_DocumentCategory inner join CMS_Category on CMS_DocumentCategory.CategoryID = CMS_Category.CategoryID where (CategoryDisplayName = '" + CurrentDocument.DocumentName + "' OR CategoryDisplayName = 'All'))"|(handlesqlinjection)false@%}
This is looking for the same category name as the document name being rendered and displays other doc types content on the page. So my content tree and category tree look the same.
What I can't figure out is if I have -group1 selected, the item will display on the page. BUT if I have a child of -group1 (-group1--sub group2) selected, by default it doesn't have the parent category -group1 selected or included. I'd think what I'd see in the database would be:
Document1|Sub Group1
Document1|Group1
But it only has one record and does not properly display the parent.