开发者

Assign a taxonomy term to a view instance

Is there an easily managed way we can assign a specific taxonomy term to a specific instance of a view?

We're using the callouts module for Drupal, and it works great for nodes/pages we have in our site. But we have a handful of Views that are displaying as a page, but we cannot assign a specific taxonomy term to a specific instance of that view.

The view itself is pulling in lists of nodes based off of a taxonomy argument:

Example On the bottom left, we have some callouts, but they're shown randomly because we can’t assign a term to that page to show specific callouts.

There's 7-8 of these pages, and they all use the same View, but just passing different data through the argument. we've tried assigning the callouts we want to the taxonomy that is used to create the view, but that didn't work either.

Without changing the view output (for example, from a page to a block), how can this be 开发者_高级运维accomplished?


Even if you could assign a taxonomy term to a view, I think it would not help in this case. Blocks are not aware of their context at the time they are rendered, so they have to look at the url to retrieve information about the node that's being displayed. The block checks if the page displays a node; if so the node data is loaded. The callouts module also works like that, as is explained on the module page. Since a view is not a node, the block will not render. To make this work, you would have to alter the callouts module I'm afraid.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜