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

デフォルトのビュー「Taxonomy term」は、達成しようとしているものと非常によく似たコンテキスト フィルターを使用しているため、このようなものを設定する方法に役立つ可能性があります。ただし、コンテンツではなくタイプ分類のビューを作成してみます。

于 2012-12-31T05:02:48.793 に答える