2

I have been banging my head against this problem all day. I'm using Drupal 7, and I'm trying to create a contextual filter that uses the pathauto string for a taxonomy term, not the taxonomy term ID.

So, I can make this work:

http://foobar.com/tags/1

But not:

http://foobar.com/tags/tagname

I have created a contextual filter of 'Content: has taxonomy term ID'. I have turned on the default taxonomy view and modified the path in it to try to create a URL that will work. I have gone into /admin/config/search/path/patterns and modified the taxonomy term path. As a result I can make the numeric ID appear in almost any URL with any prefacing text, but I can't get my view to use the pathauto-generated string for a taxonomy term instead of the taxonomy ID.

Any ideas? Am I missing something? All help is appreciated.

--Marshall

4

1 回答 1

0

默认视图“分类术语”正在使用与您尝试实现的非常相似的上下文过滤器,因此这可能会帮助您设置类似的内容。我会尝试创建类型分类而不是内容的视图。

于 2012-12-31T05:02:48.793 回答