Posted by mcduarte2000 on January 17, 2010 at 1:37pm
I've been searching for information on Views 2 and Groups, but only find information that seems related to programming...
I want to do a very simple thing...
I created a page called "Empregos" (Jobs) on the group "Portugal":
http://groups.drupal.org/portugal/empregos
And want to list only the jobs related to Portugal. The URL for the filtered job page is this:
http://groups.drupal.org/jobs?group_nid=956
How can I use the "View: jobs" to achieve this (I believe simple), wish? ;) Attached is my screen with a frustrated try of doing this using the "Arguments:" field of the view...
Thanks,
Miguel
| Attachment | Size |
|---|---|
| Screenshot.png | 187.96 KB |

Comments
Same issues
I had our group pages setup nicely, but with the panels upgrade they all got corrupted and I had to do it over, which shouldn't be a big deal, but the Views I'm seeing are not very clear at all how to set up the views I had before. A good example is How do I make a view for specific content types, or views that are already content specific, then specific to my group? There is a section for arguments, but it's not clear what argument needs to be input. Is there a general HOW TO around for setting up group pages?
Frank Carey
Twelve Grove Inc. Drupal Development
I can't figure this out too.
I can't figure this out too. Did you manage to figure this out and care to share?
Senior Drupal Developer for Lullabot | www.davereid.net | @davereid
I found these two threads helpful
http://groups.drupal.org/node/27454
and
http://groups.drupal.org/node/26273
The two views that seem most useful are
og-recent-type-term
which take arguments contenttype/taxonomyid
So if you wanted it to show the jobs from your group you'd use this view and put an argument of "job" (no quotes)
That will give you a simple job list as you can see on the NYC home page at http://groups.drupal.org/nyc
If you want the jobs as teasers (for example on the jobs page at http://groups.drupal.org/nyc/jobs) then you'd want to use the "og-content-list" view (selecting the "Node-Teaser-List" option) with the same "job" argument.
To take it one step further if you had applied taxonomy to your group and wanted all the discussions (which are actually just story type) of a certain taxonomy then you'd use the same "og-recent-type-term" view and put an argument something like "story/12345" where of course 12345 is the term id.
Much kudos goes to litwol who set up the NYC page. I wouldn't have figured it out so quickly without being able to reference that!
The block on the left side of
The block on the left side of http://groups.drupal.org/vancouver/jobs uses the following config to pull all job type posts (which I think is the same as one of the options winston's describing):
(Top all left at defaults - no node/taxo contexts)
Dave - I've got several pages set up on http://groups.drupal.org/vancouver if you want to poke around and see the config, I am sure you can. ;-)
I like the wiki idea on the right side
Will have to see if NYC or CT wants that.