Hi,
After some hours searching for documentation, I'm a bit confused about the new views interface.
I have Drupal 7.12 with two content types : Server and firewalls, and customer. And I want to build a "Customer" page with views containing servers and firewalls for each customer belonging to that customer.
What is the best way to do that ? Panel ? Views ? How to build that ?
Thanks,
Olivier.
On Fri, Mar 30, 2012 at 4:01 AM, Olivier BATARD obatard@gmail.com wrote:
Hi,
After some hours searching for documentation, I'm a bit confused about the new views interface.
I have Drupal 7.12 with two content types : Server and firewalls, and customer. And I want to build a "Customer" page with views containing servers and firewalls for each customer belonging to that customer.
What is the best way to do that ? Panel ? Views ? How to build that ?
Your Customer content type has a field pointing to the Server and Firewalls node? You only need views for that.
Well, right now I only have taxonomy term to link customer with server and firewalls. But I want to use node reference field (just discovering the module in drupal 7). The problem is with views I don't understand how it works with arguments and multiple dependent content. I'm learning views but all the documentation I found was deprecated.
Thanks for your help.
2012/3/30 Earnie Boyd earnie@users.sourceforge.net:
On Fri, Mar 30, 2012 at 4:01 AM, Olivier BATARD obatard@gmail.com wrote:
Hi,
After some hours searching for documentation, I'm a bit confused about the new views interface.
I have Drupal 7.12 with two content types : Server and firewalls, and customer. And I want to build a "Customer" page with views containing servers and firewalls for each customer belonging to that customer.
What is the best way to do that ? Panel ? Views ? How to build that ?
Your Customer content type has a field pointing to the Server and Firewalls node? You only need views for that.
-- Earnie
-- https://sites.google.com/site/earnieboyd
[ Drupal support list | http://lists.drupal.org/ ]
On Fri, Mar 30, 2012 at 7:40 AM, Olivier BATARD obatard@gmail.com wrote:
Well, right now I only have taxonomy term to link customer with server and firewalls. But I want to use node reference field (just discovering the module in drupal 7). The problem is with views I don't understand how it works with arguments and multiple dependent content. I'm learning views but all the documentation I found was deprecated.
I haven't played with views enough to be able to help further. Maybe someone else has an idea. The forum module uses taxonomy to control the forum to the node, maybe you can steal some ideas. Also you may want to look at drupal.org/project/examples for ideas.
If I understand correctly, my approach would be to use the Logged In User as the default argument, then use a relationship to their taxonomy terms, then a relationship again to get the related nodes. Node Reference would be much, much better, as all you have to do is set the references and all is done for you.
Joel
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Earnie Boyd Sent: Friday, March 30, 2012 6:50 AM To: support@drupal.org Subject: Re: [support] Views 3.3 How to build complex views
On Fri, Mar 30, 2012 at 7:40 AM, Olivier BATARD obatard@gmail.com wrote:
Well, right now I only have taxonomy term to link customer with server and firewalls. But I want to use node reference field (just discovering the module in drupal 7). The problem is with views I don't understand how it works with arguments and multiple dependent content. I'm learning views but all the documentation I found was deprecated.
I haven't played with views enough to be able to help further. Maybe someone else has an idea. The forum module uses taxonomy to control the forum to the node, maybe you can steal some ideas. Also you may want to look at drupal.org/project/examples for ideas.
-- Earnie -- https://sites.google.com/site/earnieboyd -- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for your help, node references seems much better I agree, but technically I can't make it work. I don't see how to setup my view (for argument and relation) to have my result. I'll search again and harder, that's not so easy.
2012/3/30 Joel Willers joel.willers@sigler.com:
If I understand correctly, my approach would be to use the Logged In User as the default argument, then use a relationship to their taxonomy terms, then a relationship again to get the related nodes. Node Reference would be much, much better, as all you have to do is set the references and all is done for you.
Joel
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Earnie Boyd Sent: Friday, March 30, 2012 6:50 AM To: support@drupal.org Subject: Re: [support] Views 3.3 How to build complex views
On Fri, Mar 30, 2012 at 7:40 AM, Olivier BATARD obatard@gmail.com wrote:
Well, right now I only have taxonomy term to link customer with server and firewalls. But I want to use node reference field (just discovering the module in drupal 7). The problem is with views I don't understand how it works with arguments and multiple dependent content. I'm learning views but all the documentation I found was deprecated.
I haven't played with views enough to be able to help further. Maybe someone else has an idea. The forum module uses taxonomy to control the forum to the node, maybe you can steal some ideas. Also you may want to look at drupal.org/project/examples for ideas.
-- Earnie
-- https://sites.google.com/site/earnieboyd
[ Drupal support list | http://lists.drupal.org/ ]
[ Drupal support list | http://lists.drupal.org/ ]
I would definitely go with references. Then I would approach the View as a two-parter. The first part is to select the customer based on the argument (under "Contextual filters"). The second part, to get the servers, would be an "attachment" type of View that uses a "Relationship"to the node reference field.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Olivier BATARD
Thanks for your help, node references seems much better I agree, but
technically I can't make it work. I don't see how to setup my view (for argument and relation) to have my result. I'll search again and harder, that's not so easy.
I don’t think you need an attachment View. You should be able to just have the Contextual Filter be the Customer, then use a Relationship to add the Server, then when adding Fields, you’ll have Server Fields that you then select based on the Relationship.
Joel
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ms. Nancy Wichmann Sent: Friday, March 30, 2012 9:20 AM To: support@drupal.org Subject: Re: [support] Views 3.3 How to build complex views
I would definitely go with references. Then I would approach the View as a two-parter. The first part is to select the customer based on the argument (under "Contextual filters"). The second part, to get the servers, would be an "attachment" type of View that uses a "Relationship" to the node reference field.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: Olivier BATARD Thanks for your help, node references seems much better I agree, but technically I can't make it work. I don't see how to setup my view (for argument and relation) to have my result. I'll search again and harder, that's not so easy.
Ok thanks, I tried that but no luck, I have certainly a problem in my view configuration.
2012/3/30 Joel Willers joel.willers@sigler.com:
I don’t think you need an attachment View. You should be able to just have the Contextual Filter be the Customer, then use a Relationship to add the Server, then when adding Fields, you’ll have Server Fields that you then select based on the Relationship.
Joel
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ms. Nancy Wichmann Sent: Friday, March 30, 2012 9:20 AM
To: support@drupal.org Subject: Re: [support] Views 3.3 How to build complex views
I would definitely go with references. Then I would approach the View as a two-parter. The first part is to select the customer based on the argument (under "Contextual filters"). The second part, to get the servers, would be an "attachment" type of View that uses a "Relationship" to the node reference field.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Olivier BATARD
Thanks for your help, node references seems much better I agree, but technically I can't make it work. I don't see how to setup my view (for argument and relation) to have my result. I'll search again and harder, that's not so easy.
-- [ Drupal support list | http://lists.drupal.org/ ]