4

Panel Pulling View Which Displays Articles Pulled Using Multiple Taxonomy Terms

http://drupal.org

Hi All,

Once you understand Views and Panels, things are great. I am stuck on one thing though.

I have about 20 pages called: "/page/food-issue/natural" and "/page/food-issue/diet".

So, I created a Custom Page in Panels that is "/page/food-issue/%name", the idea being the 20 pages already created could be replaced out with this Panel.

Thus, "/page/food-issue/natural" goes to the Panel page. Easy.

I created a View that pulls all articles from the site with certain keywords. An article about "natural foods" might pull any articles tagged with the keywords "natural" and "healthy", for instance. The taxonomy terms might be "1001" and "1002", and the View can also separately pull by "region" or "cuisine" as well, which use their own tagging fields.

Thus, a View page pulling the articles might be: "/[URL]/[cuisine]/[region]/[topic]" "/articles/all/all/1001+1002" which would bring up all natural food articles, regardless of "cuisine" or "region".

Great. I am stuck on the next step though.

It seems that inside Panels I ought to be able to put in a simple If/then statement such as, if the Page being pulled is "natural", then the View inside the Panel Page would know to pull all articles with the terms 1001 and 1002. Or if it was "diet" that was the term, there might be a number of associated taxonomy values as well.

Where does such a piece of logic reside inside panels?

Under Panels/Contexts (which I am just beginning to understand), I have "taxonomy term multiple: ID" as the Argument 1 context. But I do not know if this is the right direction to be going.

Am I missing some key item here?

Since, I only have 20 of these pages, I was going to create a quick table, with the texts for the 20 pages, pullable by the topic term such as "natural", or "diet". Is this where such a multi term taxonomy list might go?

It would be good to know the proper way to do this, maybe there is a tutorial out there covering this very topic, since I could also use such a Panels arrangement for the "region" part of my site, which would necessitate making that if/then table for that as well.

Thanks,
Rob

Read »
Created by drupalmodules 36 weeks 5 days ago
Category: News   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Panel Pulling View Which Displays Articles Pulled Using Multiple Taxonomy Terms

Recent comments