Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2007 at 21:21 UTC
Updated:
4 Aug 2010 at 17:51 UTC
This patch adds a new argument ' Role: Author Role' that means you can have views like 'myview/staff' to (for example) give a listing of staff blog posts.
I have tested it out and it seems to work fine (including summaries), but this is the first views arg I have written, so someone should check it over :)
I took the liberty of replacing spaces in the links with '+' symbols, which is nicer than the %20s you get with 'real' spaces.
| Comment | File | Size | Author |
|---|---|---|---|
| views_role_arg.patch | 2.28 KB | owen barton |
Comments
Comment #1
bwood commentedUsing Drupal 5.1 here's what I did to apply this patch and get it working:
(Using Views module 5.x-1.6)
1. Disable Views and all dependant modules
2. Uninstall Views (Administer > Modules > Uninstall)
3. Download and apply the patch (linux shell access)
4. Administer > Modules. Enable Views module. Enable Views UI module.
5. Administer > Views > Add. Goto Arguments section. Expand Add Argument select menu and you should see "Role: Author Role."
Comment #2
merlinofchaos commentedSetting correct version.
Comment #3
owen barton commentedCorrecting title too (I wonder how the version changed?...is was entered as 5.x, and there is no change in the comment log...)
I can update this patch for 6.x if you would be interested.
Comment #4
merlinofchaos commentedIt was probably entered for HEAD which did eventually change to 6.x-2.x.
Views 2 for D6 already has a role argument, so no need to roll this for that.
Comment #5
esmerel commentedAt this time, only security fixes will be made to the 5.x version of Views.