It is sometimes useful to be able to start a view from the current group (from the group context). I would be useful to have a default argument plugin that enables that.

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new1.76 KB
amitaibu’s picture

Thanks DamZ,

+        'title' => t('Current group node'),

I think the name should imply that the group node is coming from the context --"Current group node by context", maybe?

amitaibu’s picture

Status: Needs review » Fixed

Committed, 10x!

jvieille’s picture

How is this supposed to work?
I installed the latest dev wish seems to includes th new plugin, but I don't find the new argument.
I added "groups" as argument, but it did not help

amitaibu’s picture

Add argument node:nid >> Provide default value >> Current group node by context

jvieille’s picture

OK, but that does not help in my case.
When I enable the view Taxonomy_term view in order to customize the content selection with OG Vocab Category block, I loss the context of the group.
I thought that this trick would solve the issue, but it isn't.
What is the actual effect of setting this argument?

jvieille’s picture

As I am extending an existing core View (taxonomy_term), the argument is the third (if I move it in the first position, the view does not work anymore as the calling programs are set for the iniital order)
May be this could explain that it cannot keep the group context?

Status: Fixed » Closed (fixed)

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