2016-10-21 3 views
0

내 코드가 아래에 있습니다. 직접 연결하려는 카테고리를 제외한 모든 카테고리를 표시하고 싶습니다. category_id_not이 작동하지 않는 것 같습니다.표현 엔진에서 하나만 제외하고 모든 카테고리 표시

{exp:channel:categories category_group="4" style="linear" show_empty="yes" category_id_not="42"} 
<option value="/events/category/{category_url_title}">{category_name}</option> 
{/exp:channel:categories} 

답변

2
{exp:channel:categories category_group="4" style="linear" show_empty="yes" show="not 42"} 
    <option value="/events/category/{category_url_title}">{category_name}</option> 
{/exp:channel:categories} 

category_id_not 유효한 매개 변수 아니며 (즉 일관되고 논리적 인 것입니다하지만) 대신 show="not 42"를 사용해야합니다 category_id입니다.

전체 문서 here.