Showing just the child category titles of a parent I have a category group with parents each with 1 level of children.

On my category entry page I want to list JUST the children of the current category being viewed.

I'm sure it's simple but I can't figure what to put in my category template?

Many thanks in advance.

Martin
You should actually already have a variable named "category"
pre-assigned by Craft, if you've set up your categories to have URLs in the category settings.

So this simplified code is probably all you need.

{% set subCategories = craft.categories.descendantOf(category) %}

{% if subCategories|length %}
    &lt;ul&gt;
        {% for category in subCategories %}
            &lt;li&gt;&lt;a href="{{ category.url }}"&gt;{{ category.title }}&lt;/a&gt;&lt;/li&gt;
        {% endfor %}
    &lt;/ul&gt;
{% else %}
    {% exit 404 %}    
{% endif %}


To have different template code for your sub-category pages you're linking to, I would
put the code above in a partial _partials/mainCategory and include it with the include function.

{% if category.level == 1 %}
    {% include '_partials/mainCategory' %}
{% else %}
    {% include '_partials/subCategory' %}
{% endif %}