0

我在 ExpressionEngine 中为我的侧边栏使用 GWCODE 类别插件。

有没有办法只显示具有 15 个或更多条目的子 (depth_2) 类别?我知道有一个 entry_count 变量,但我不确定如何使用它来过滤输出

4

1 回答 1

0

使用 entry_count 变量时,请确保将其指定为参数,否则它不会输出任何内容。

{exp:gwcode_categories channel="example" depth="2" entry_count="yes"}
    {if {depth} == 2 && {entry_count} >= 15}
        {cat_name}
    {/if}
{/exp:gwcode_categories}

如果您指定/澄清您当前使用的代码,我可以改进上面的示例。

于 2013-03-16T11:44:43.607 回答