Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have set up chat rooms for my organic groups. Each chat room is a node. I would like to be able to add a link to one of these nodes for my groups, similar to the way I can add a page.
How can I accomplish this?
Comments
Comment #1
highvoltage CreditAttribution: highvoltage commentedThe only way I've ever known how to do this without programming anything was with views. Maybe you could create a view to display the node and filter using a group id argument.
The thread that helped me do this is here:
http://drupal.org/node/327795
Comment #2
tevih CreditAttribution: tevih commentedthanks for the direction, but I'm a little lost. I created the view, as I think it should be. I also clicked the "provide menu as tab" but nothing shows up in my groups. I'm a little thick-headed. Can you help me with a step-by-step?
Comment #3
highvoltage CreditAttribution: highvoltage commentedI had difficulty with in earlier instruction in that thread also, but near the end of that thread are some detailed ones.
The most likely problem is the path and argument you are using...
-make sure your argument is set to 'Organic groups: Groups'
-in the argument settings make the validator 'Group nodes'
-the view needs to have a page display with a path of 'node/%/og/pagetitle'. Replace 'pagetitle' with the name you want for the view page.
Those are pretty much the only differences between a normal view and one that will create a tab for groups.
Comment #4
tevih CreditAttribution: tevih commentedHm.. I gave an argument of OG: Group nid(s). There was no option of Organic Groups: Groups. Also, in the path area, there were specific instructions regarding creating view for groups, and it followed the pattern of 'node/$group/custom'; not 'node/og...' However, these didn't work either.
Are you maybe giving me instructions for Drupal 6 instead of 5?
Comment #5
highvoltage CreditAttribution: highvoltage commentedI feel like a giant moron. Yes, I was thinking drupal 6. So rare to see 5.x I've become blind to the version tag. Sorry for wasting your time like this.
Comment #6
tevih CreditAttribution: tevih commentedNo problem - I appreciate your time spend on my behalf.
do you have any thoughts on what may be the issue? While the specifics seem a little different, the concepts seem the same across both D5 and D6, and I would think what I'm doing should be working.