Hi,

I've been reading everything I can on the drupal site, but cannot understand "depth" of categories.
I'd like to list child categories within a parent category page. Does depth relate to this?

I know it has a description on the "edit category page":
> The depth of child categories that a node listing reflects. Set this to a negative value to reflect an infinite depth.
> Although a container cannot be assigned nodes, it can still list nodes of child categories, if it has a depth that is not 0.

...but this does not explain it.

Is there a better description of depth somewhere?

Comments

random_’s picture

Can no-one really explain how depth works in plain english?

Jaza’s picture

Status: Active » Fixed

Depth only affects the node listing for a category. It does not affect the TOC (table of contents - list of child categories) for a category - you can use 'TOC depth' for that instead.

I.e. Say you have a category 'animals', and a child category 'dogs'. Then you have two posts, 'my dog' and 'your dog', which you've tagged with the category 'dogs'. If you set the depth of 'animals' to 1, then 'my dog' and 'your dog' will be listed on the 'animals' page, even though they were tagged with 'dogs'. However, setting the depth to 1 will not make 'dogs' show up on the TOC for 'animals'.

Hope that answers your question.

random_’s picture

Status: Fixed » Closed (fixed)

Yes, thanks.