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.
Attachment provides an implementation of hook_views_tables() for the url_alias table.
It provides:
fields:
Path: Alias (Display the path alias of the node.)
sorts:
Path: Alias (Sort nodes by their path alias, alphabetically)
filters:
Path: Alias (This filter allows nodes to be filtered by their path alias.)
Maybe you like it to be included in views itself since it provides integration with a core module.
Comment | File | Size | Author |
---|---|---|---|
#3 | patch.txt | 1.69 KB | casey |
views_path.zip | 652 bytes | casey |
Comments
Comment #1
casey CreditAttribution: casey commentedSome thoughts why and how it can be useful:
It can provide very useful moderation views like a table of nodes containing a column with their path alias. When you sort by their path alias it gives a clear overview of your sitestructure.
You can even add an (exposed) filter so you can shorten the list (e.g. nodes with a path alias starting with 'handbook/modules/views').
To use it just put the file into the modules directory of the views module (e.g. sites/all/modules/views/modules/views_path.inc).
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedCan you post the patch not as a zip file? I don't want ot have to download it and unzip it when I should be able to view the patch with my browser.
Comment #3
casey CreditAttribution: casey commented(Patch created with eclipse)
Comment #4
oldrobb CreditAttribution: oldrobb commentedPosted in error.
Comment #5
alanburke CreditAttribution: alanburke commentedPatch doesn't apply for me [but that might be just me].
Useful addition.
Alan
Comment #6
sunSorry, Views 1.x will not have any new major features. Consider upgrading to 6.x, please.
Comment #7
balsamaWas this integrated into 6.x? I'm using 6.x-2.11 and don't see the option to sort by Node: Path.
Comment #8
RobbM CreditAttribution: RobbM commentedSubscribing, as I could really use this functionality too...
Comment #9
digital_fox CreditAttribution: digital_fox commentedI have added this file in sites/all/modules/views/modules/views_path.inc. New filters it was not added. How to use this module?
Comment #10
dawehnerNo this wasn't integrated. Please don't hijack issues.
There are feature requests/patches in the queue for 6.x
Comment #11
digital_fox CreditAttribution: digital_fox commentedis it possible to filter by url?
Comment #12
jrockowitz CreditAttribution: jrockowitz commentedI created a simple module that allows Views to be filtered by path aliases.
http://drupal.org/project/views_url_alias
It does create a new table containing just node url aliases so that the Path alias filter can use a clean join. I am unsure if Views 2.x+ supports the originally proposed CONCAT operator for the JOIN.
Anyway, my module should be considered a temporary fix until this feature is added to Views.
Comment #13
jrockowitz CreditAttribution: jrockowitz commentedBelow is a link to the current ticket addressing this request for Views 3.x
#867786: Add path.module integration so we can join from node/user/etc to {url_alias}