This patch will add a "Context: Active Context" filter for any views. If the filter evaluates to TRUE based on the operational conditions, the view will be shown, otherwise it will not show (regardless if there is empty values provided).

Also note: restructured ./plugins -> ./views and renamed argument include file to better naming conventions.

img
img

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kaizerking’s picture

this patch cannot be applied

markhalliwell’s picture

Why not? There hasn't been any dev work on the 7.x-2.x branch since I've posted this issue. This patch isn't for the 6.x branch.

http://drupal.org/patch/apply

Save the patch in the top level of this module's folder. Then run from that same folder:

patch -p1 < views_arg_context-filter.patch

kaizerking’s picture

I am using net beans to apply patches, it is working good
it seems this patch has been incorporated in the dev version, there may be some difference
pl check

markhalliwell’s picture

Hmm, not sure why it's not applying now... just tried it myself again.

Here's a re-roll nonetheless.

kaizerking’s picture

complete code from this file "views_plugin_argument_default_context.inc" is removed with this patch and the file remains blank, is this expected?
I request , please apply this patch and attach complete module zip
Also we have a drop down (in the screen shot) which show equal to , contains and we have afield to give in put can we get available tokens ? basicalli am looking use this to achieve this view of content matching user profile(profile2) term reference fields

markhalliwell’s picture

FileSize
91.02 KB

There was some restructuring of files, yes. However, I cannot remember if this was indeed the file that is removed.

This module hasn't been supported in months and I only added this issue because at the time my needs included adding this type of functionality. I do not maintain this module nor do I wish to, so whether they implement this feature is up to them (they might have a better solution). I don't have the time to continue supporting this feature at the moment, but here's a zip of what I have nonetheless.

markhalliwell’s picture

Issue summary: View changes

Added notes.