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.

CommentFileSizeAuthor
#3 patch.txt1.69 KBcasey
views_path.zip652 bytescasey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

casey’s picture

Status: Needs work » Needs review

Some 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).

merlinofchaos’s picture

Can 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.

casey’s picture

FileSize
1.69 KB

(Patch created with eclipse)

oldrobb’s picture

Posted in error.

alanburke’s picture

Status: Needs review » Needs work

Patch doesn't apply for me [but that might be just me].

Useful addition.
Alan

sun’s picture

Status: Needs review » Closed (won't fix)

Sorry, Views 1.x will not have any new major features. Consider upgrading to 6.x, please.

balsama’s picture

Version: 5.x-1.x-dev » 6.x-2.11

Was this integrated into 6.x? I'm using 6.x-2.11 and don't see the option to sort by Node: Path.

RobbM’s picture

Subscribing, as I could really use this functionality too...

digital_fox’s picture

I have added this file in sites/all/modules/views/modules/views_path.inc. New filters it was not added. How to use this module?

dawehner’s picture

Version: 6.x-2.11 » 5.x-1.x-dev

No this wasn't integrated. Please don't hijack issues.

There are feature requests/patches in the queue for 6.x

digital_fox’s picture

is it possible to filter by url?

jrockowitz’s picture

I 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.

jrockowitz’s picture

Below 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}