1

在 Drupal 7 中,我有一个包含数千篇文章的站点。我正在使用分类法对我的文章进行排序,并使用内容过滤器在某些页面上显示带有相关术语的适当文章的视图。标准功能。

我已经添加了路径(标准)、pathauto 和 Token,所以我想我已经拥有了我需要的一切。在我的分类中,我这样设置:

fruits (/fruits)
- apples (/fruits/apples)
- bananas (/fruits/bananas)
- grapes (/fruits/grapes)

但我所有的文章都在我的网站 www.mysite.com/articlename 上。我希望它看起来像 www.mysite.com/fruit/banana/pies。

根据每个人的说法,我可以在我的路径配置页面上的文章下添加路径,使用[term:parents:join-path]/[term:name].

但是,我收到一个错误:

The Pattern for all Article paths is using the following invalid tokens [term:parents:join-path], [term:name].

我会很感激我能得到的任何帮助!似乎其他人在其他论坛上都在努力解决这个问题,但没有我遇到同样的问题。

也许我错过了一个模块?这些令牌不在我的列表中。

4

1 回答 1

0

我的情况是,我有一个类别的分类字段。使用这种模式

[node:field_your_taxonomy_field]/[node:title]
于 2016-11-19T03:35:51.300 回答