has anyone had luck with the og: Group nid argument? I created a block view with that argument, filtered to include nodes used in my groups, displayed the block on all pages on my site, but it's not returning anything on any of the pages...

Any ideas?

Comments

sodani’s picture

I'll also note that the nids are appearing in my group URLs. They display as domain.com/groups/##

merlinofchaos’s picture

blocks don't get arguments since there's no clean path from the URL to the block.

You'll need to use the PHP argument bit to add some PHP to extract the argument from the URL.

Try something like

  if (arg(0) == 'groups') { return array(arg(1)); }
sodani’s picture

What I'm trying to do is display one organic group content type as river of news and another as a table (and both within the main content area). After reading http://drupal.org/node/62099, my thinking was that I could add a view to organic groups, but am I taking the right approach?

merlinofchaos’s picture

Well, this approach adds a block, which isn't entirely a bad thing. I'm not exactly sure how to override a group page properly. At some point I need to mess with this just to see, because there are some really interesting things one could theoretically do using panels and OG and views together. Especially if panels gets user-generated panels as a possibility.

merlinofchaos’s picture

Status: Active » Fixed

I believe this issue is, er, 'fixed'?

sodani’s picture

Yeah, I think so. I just need to find some more threads on the topic.

Anonymous’s picture

Status: Fixed » Closed (fixed)