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

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

问候和感谢!

4

1 回答 1

1

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

低 Seg2Cat

但是,您的 URL 不是嵌套类别,因此您需要使用此模块

类别网址

要输出您的类别链接,然后使用 Seg2Cat 抓取 {segment_url} 并手动为新闻页面构建您的 crumbs,即

主页 > 新闻 >家长 > 孩子 > 文章标题

会是这样的:

{segment_2_category_name} {segment_3_category_name} {segment_4_category_name}

于 2014-01-21T09:51:03.357 回答