2013-03-04 24 views
0

我正在使用表情引擎中的面包屑添加易碎添加项。如果显示子类别,我希望添加显示父类别。表达式引擎中的面包屑导致

URL可能看起来像下面这样:

1. http://test/test1/news and the parent category is the news. 
2. http://test/test1/births and the births is the subcategory for news. 

,我想我的导航看起来像下面的(如果用户目前看到的产)

test/ test1/ news/births 

我需要强调这是在每个页面上动态完成的。

谢谢!

+0

您可能要张贴此为ExpressionEngine具体StackExchange站点以获得更快的响应:http://expressionengine.stackexchange.com/ – 2013-03-04 18:22:45

回答

1

我打算只使用这个优秀的模块建议:

Low Seg2Cat

但是,您的网址是不是嵌套类,所以你需要使用这个模块

Category URL

要输出您的分类链接,请使用Seg2Cat获取{segment_url}并手动构建新闻页的面包屑,例如

首页>新闻>父>儿童>文章标题

会是这样的:

{segment_2_category_name} {segment_3_category_name} {segment_4_category_name}