Child Categories
ExpressionEngine 1.x, ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Laisvunas
Limit Child Categoies, I want show just ONE child category
Support Request
spatafore
|
Posted: 12 December 2012 07:03 PM |
|
|
|
hi, why dont see any parameter for limit???
{exp:child_categories
channel=‘products_new’
parent=‘8’
limit=‘1’
}
{child_category_start}{child_category_name}{child_category_end}
{/exp:child_categories}
see in red, I want show just ONE child category! not all childs
help! thanks
|
|
|
Laisvunas
|
Posted: 15 December 2012 09:02 AM |
# 1
|
|
Developer
|
Hi,
In this plugin there is only parameter “entries_limit” used to limit the number of entries displayed for each child category. There is no analogous parameter to limit the number of child categories displayed.
Still you can achieve what you need by using conditional:
{if "{child_category_count}" == "1"} {child_category_name} {/if}
|
|
|
MobsterEE
|
Posted: 14 December 2016 05:29 PM |
# 2
|
|
|
I know this is old, but I need the same thing. I need to limit the child categories and the above code isn’t working…..
|
|
|