Open Atrium has something like this, would be nice to integrate into space_og. Patch to follow.

Comments

glennpratt’s picture

StatusFileSize
new4.96 KB

Patch attached. Links to a nodes spaces_og front page using purl. Seems safe since spaces_og depends on purl.

This patch could be seriously trimmed down if I could add arbitrary options to the l() function views render_as_link() calls.

Tried to use git to create this patch, but it's not quite right, will re-roll it with CVS later.

glennpratt’s picture

Status: Active » Needs review

up for review

christianchristensen’s picture

StatusFileSize
new8.01 KB

An addition to this patch: allow in views setup the ability to add specific link locations to the specified group space in the view options. Also, allow for access check on a feature type in another space.

This allows for a view to link into another space's menu items and do access checks on that spaces enabled features (by feature name).

Please see patch.

archnode’s picture

I tested the patch and so far everything looks good. Thank you.

EDIT: Found a problem, though: Won't work with the group node added to the view with a relationship (group post). Just gives me a link to the frontpage (/).

yhahn’s picture

Status: Needs review » Fixed

Thanks, committed here with some adjustments: http://drupal.org/cvs?commit=404566

The spaces link handler now replaces the default views node field handler allowing you to gracefully downgrade from a spaces_og built view to just OG if necessary. Similar logic for the og nids replacement handler.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.