Closed (fixed)
Project:
Views default argument from Context
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2011 at 16:26 UTC
Updated:
9 Nov 2011 at 11:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
tebb commentedSubscribing.
Comment #2
Shadlington commentedSubbing
Comment #3
mattsmith3 commentedsub
Comment #4
that0n3guy commented+
Comment #5
baldwinlouie commentedI just updated this module for one of my projects. Attached is a working D7 patch.
The readme and the default views that is included were not ported. Feel free to modify this patch.
Comment #6
xjmComment #7
davidseth commentedOk, got it working. Now to do some tests... Thanks for you patch!
Comment #8
Adam S commentedsubscribing
Comment #9
Adam S commentedThe argument plugin options form need a little work. First time I created a patch so let me know if it doesn't work.
Comment #10
Adam S commentedFrom the looks of it that last patch is backwards. Lets try this again. (Ah, yes, the preview button :)
Comment #11
baldwinlouie commentedHook_nodeapi is not part of d7 anymore. It has been replaced by hook_node_view and some other hook functions. I also added a convenience function for hook_user_view
Also what's the modification to the argument form?
Thanks for the patch!
Comment #12
Adam S commentedThe '#dependency' property does not exist in Views 3. It might have something to do with the ctool ajax framework moving to Drupal 7 core. So the argument options are defined in function option_definition().
Comment #13
Adam S commentedThere was a problem with the taxonomy_node_get_terms() not existing in Drupal 7. Based on this thread, http://drupal.org/node/909968, I just went ahead and added the function to views_arg_contect.module.
You still need to know what the namespace and attributes are which can found at the bottom of the vews_arg_context module. It should be self evident how to use them.
It is working great for me. For taxonomy arguments in Views you need the Content: Taxonomy terms on node in relationships and Content: Taxonomy terms on node in Contextual filters. under the contextual filters choose -> provide default argument -> active context -> namespace: taxonomy -> attribute: tids-or. Then click more and click allow extra values. Because multiple terms will repeat results use the query settings to set to distinct.
I would love to get some testing and feed back on this.
Comment #14
xjmComment #15
yareckon commentedsub
Comment #16
jonathan_hunt commentedThis looks promising but I can't apply the patch:
Comment #17
Adam S commentedHere it is in a zip file. I use it on a live D7 site.
Comment #18
xjmSee also #1278982: Add xjm as maintainer or co-maintainer. If I get access to this project, I'll open a D7 branch with #17.
Comment #19
xjmOpened 7.x-2.x branch, committed and pushed #17, and created a release node. A dev tarball should be available within 24 hours. Thanks to brynbellomy for super-fast turnaround on the maintainer access!
http://drupal.org/commitlog/commit/13216/9ff7eb577e6ec08f72d5466c586df28...