表达式引擎类别 [英] Expression Engine Categories

查看:17
本文介绍了表达式引擎类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 1 个模板和 45 个类别.当我点击我唯一的类别组产品"链接时,我的侧导航显示所有类别的父母和孩子,这很好.

I have 1 template, and 45 categories. When I click on the link "products" which is my only category group, my side nav shows all of the categories parents and childs, which is good.

我现在希望能够选择中央吸尘器"类别之一,并让我的侧导航变成仅与中央吸尘器"相关的所有类别.我找到了一种使用细分的方法,但它似乎只允许我显示中央真空"中的子类别,而不是其他父母中的任何其他类别.

I now want to be able to choose one of the categories "central vacuums" for example, and have my side nav turn into all the categories related to "central vacuums" only. I've found a way using segments, but it only seems to allow me to show the child categories within "central vacuums", not any of the other categories within other parents.

另一个例子.如果我从我的品牌"父级中选择一个类别,则只会显示该品牌的产品.然后我想选择另一个类别,并将其限制为两个类别.

Another example. If I choose a category from my "brands" parent, only products by that brand will show. I then would like to choose another category, and have it limited to both categories.

我希望这对某人有意义,谢谢.

I hope this makes sense to someone, Thanks.

推荐答案

你应该看看这个 EE1/EE2 插件,它可能满足你的需要:

You should checkout this EE1/EE2 plugin which might do what you need:

GWcode 类别

http://devot-ee.com/add-ons/gwcode-categories

您可以使用该插件执行的操作示例如下:

http://gwcode.com/add-ons/gwcode-categories/examples

可用的参数和变量在这里:

http://gwcode.com/add-ons/gwcode-categories/documentation

这篇关于表达式引擎类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆