2016-10-21 4 views
0

私のコードは私が直接リンクしたいもの以外のすべてのカテゴリを表示したい。 category_id_notは機能していないようです。表現エンジンで1つを除くすべてのカテゴリを表示

{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有効なパラメータではなく、またcategory_idは、あなたの代わりにshow="not 42"を使用する必要があります(つまり、一貫性のある論理的だろうが)です。

完全なドキュメントhere

関連する問題