<p>Craft supports hierarchical, nested <a href="https://craftcms.com/docs/categories" rel="nofollow">categories</a> out of the box.</p>

<p>It also supports hierarchical entries, assuming you used the <a href="https://craftcms.com/features/section-types" rel="nofollow">Structure</a> section type (and not a channel or single).</p>

<p>Where Craft and Joomla differ is the <em>output on the front end</em> is completely up to you. There's no default "widget" or anything in Craft that is going to do exactly what you want.</p>

<p>Craft's <a href="https://craftcms.com/docs/templating/nav" rel="nofollow">{% nav %}</a> tag would help you output categories and sub categories. <a href="https://craftcms.com/support/structure-nav" rel="nofollow">This example</a> uses a structure section but it's also applicable to nested categories as well.</p>

<p>There's a few recipes in the <a href="http://craftcookbook.net" rel="nofollow">Craft Cookbook</a> that you might find helpful in this instance as well.</p>

CC BY-SA 3.0
2016-02-22T21:47:27.600Z
2016-02-22T21:47:27.600Z
RitterKnight
<p>I have a large-ish site built with Joomla and K2, with articles stored in a hierarchy of categories..</p>

<p>What is the proposed way to recreate the Category hierarchy functionality?</p>

<p>What I am interested in is that when a user opens a parent category, he sees all items stored in this category, plus all items stored in children categories.
If he opens a child category, he sees items stored only in this category.</p>

<p>I have tried a demo installation, and experimented a bit with section types and categories, but what I need is some kind of parent-child relation in Categories or Sections. </p>

<p>Could you please help me clarify how these things are distinct and what would be best practice to achieve what I want?</p>

<p>Thanks in advance for your time.</p>

CC BY-SA 3.0
2016-02-22T21:50:46.137Z
RitterKnight gives a [great answer](http://craftcms.stackexchange.com/a/13828/45) for how you may choose to layout your categories in Craft. As for the migration itself, your options will be identical to those mentioned in [this thread...](http://craftcms.stackexchange.com/questions/13817/is-there-a-tool-to-migrate-joomla-k2-entries-into-craft)
Lindsey D
<categories><craft-pro>
Migrating Joomla K2 nested categories
# Migrating Joomla K2 nested categories

(Asked by: username_0 on 2016-02-22)

I have a large-ish site built with Joomla and K2, with articles stored in a hierarchy of categories..

What is the proposed way to recreate the Category hierarchy functionality?

What I am interested in is that when a user opens a parent category, he sees all items stored in this category, plus all items stored in children categories.
If he opens a child category, he sees items stored only in this category.

I have tried a demo installation, and experimented a bit with section types and categories, but what I need is some kind of parent-child relation in Categories or Sections.

Could you please help me clarify how these things are distinct and what would be best practice to achieve what I want?

Thanks in advance for your time.

**Tags:** categories, craft-pro
> **Comments:**
> **username_1**: RitterKnight gives a [great answer](http://craftcms.stackexchange.com/a/13828/45) for how you may choose to layout your categories in Craft. As for the migration itself, your options will be identical to those mentioned in [this thread...](http://craftcms.stackexchange.com/questions/13817/is-there-a-tool-to-migrate-joomla-k2-entries-into-craft)  

---

## 1 answers

### Answer by username_2 on 2016-02-22. Score: 3 | Accepted answer

Craft supports hierarchical, nested [categories](https://craftcms.com/docs/categories) out of the box.

It also supports hierarchical entries, assuming you used the [Structure](https://craftcms.com/features/section-types) section type (and not a channel or single).

Where Craft and Joomla differ is the *output on the front end* is completely up to you. There's no default "widget" or anything in Craft that is going to do exactly what you want.

Craft's [{% nav %}](https://craftcms.com/docs/templating/nav) tag would help you output categories and sub categories. [This example](https://craftcms.com/support/structure-nav) uses a structure section but it's also applicable to nested categories as well.

There's a few recipes in the [Craft Cookbook](http://craftcookbook.net) that you might find helpful in this instance as well.


---

