Build group features of modules that does not use views?

Events happening in the community are now at Drupal community events on www.drupal.org.
vegardjo's picture

Hia, sorry if this is a stupid question, but I'm struggling to build (OG) features of modules that does not use Views, as I do not know how to filter for Space without Views.. With Views you select the spaces filter, and set for instance "show nothing" when node is not in space.

But, what if the feature I wish to build does not use Views? Am I out of luck?

I've tried to build a book feature which half way works, until I need to set the book navigation in the sidebar. As book navigation is a block I cannot use a Views filter on that one, and all book navigation trees on the site are shown in every group. This is solved in Open Atrium, but as I'm not much of a programmer I cannot see where in the code this is set. Is it in the Atrium Book feature or in the Atrium module, or..?

Second example, I wish to build a forum feature using the built in Forum feature, but as the containers and forum view does not use views either I cannot use the spaces filter, and all containers and features are shown for all groups..

As I said I'm not a programmer, but have access to a few, so a push in the right direction here on how to limit module output to a space without Views are highly appreciated! ..or, are you in general out of luck if you try this?

(cross posted to Open Atrium and Packaging & Deployment, hope that's ok!)

best, Vegard

Comments

og_strict_filter

vegardjo's picture

Coming back to my own question: my colleague made a small module to solve this, named Strict filter for organic groups (og_strict_filter) - this module ensures that only nodes and terms that belong to the active group are shown, meaning only book outlines for the actual groups are shown, the "recent comment" block show only comments for the the active group shows etc.

It also works with taxonomy, meaning that the core forum.module can be used in space_og, we're currently working on a forum feature based on this!

Context Module?

benklocek's picture

What if you were to use context module? http://drupal.org/project/context

Packaging & Deployment

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week