Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A D7 version of this handy little module would be great!
Comment | File | Size | Author |
---|---|---|---|
#17 | views_arg_context.zip | 46.17 KB | Adam S |
#13 | views_arg_context-drupal-7.patch | 7.17 KB | Adam S |
#10 | patch0.patch | 4.51 KB | Adam S |
#9 | patch1.patch | 4.51 KB | Adam S |
#5 | d7_upgrade-1071930-5.patch | 3.35 KB | baldwinlouie |
Comments
Comment #1
Tebb CreditAttribution: Tebb commentedSubscribing.
Comment #2
Shadlington CreditAttribution: Shadlington commentedSubbing
Comment #3
mattsmith3 CreditAttribution: mattsmith3 commentedsub
Comment #4
that0n3guy CreditAttribution: that0n3guy commented+
Comment #5
baldwinlouie CreditAttribution: 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 CreditAttribution: davidseth commentedOk, got it working. Now to do some tests... Thanks for you patch!
Comment #8
Adam S CreditAttribution: Adam S commentedsubscribing
Comment #9
Adam S CreditAttribution: 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 CreditAttribution: Adam S commentedFrom the looks of it that last patch is backwards. Lets try this again. (Ah, yes, the preview button :)
Comment #11
baldwinlouie CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: yareckon commentedsub
Comment #16
jonathan_hunt CreditAttribution: jonathan_hunt commentedThis looks promising but I can't apply the patch:
Comment #17
Adam S CreditAttribution: 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...