Categories looking strange

Jun 14, 2013 at 7:36 AM
Hello!

Our blog http://www.eroticdb.com ( NSFW!!) two categories looks like they are children to another category but they are not.
The categories Hegre-Art and MC-Nudes looks like they are children to FEMJOY.
I did not set them up as having a parent, and when I check in the database they dont have a parent category.
Can someone explain why they are "under" the category FEMJOY? Or at least it looks like they are.
Jun 14, 2013 at 9:10 AM
Edited Jun 14, 2013 at 9:11 AM
You need to get rid of the dash in both of those category names, so if you rename Hegre-Art(although correct) to Hegre Art you should be good.

In BlogEngine parent child categories are indicated by a separating dash when you use the complete title(grandparent-parent-child). Internally, you can retrieve just the individual category title from the categories title property. There is also a function that will return a string representing not just the category name, but the name within the category hierarchy, the CompleteTitle() which is a dash separated string where parent child categories exist.

The category widget counts the dashes in the complete title and adds space for each dash(to produce an indented list), this works unless of course there actually is a dash in the category title.
Jun 14, 2013 at 9:22 AM
Thanks for answer! It works :)