Hi - I just wondered if I'm missing something here.

When I use node.get from Services, one property returned is the path of the node (node.path).

I wish to make a View which accepts a path as an argument then returns the node with that path. I seem to be prevented from doing this because "path" is listed as a potential argument in Views.

Is there a reason why "path" is not available?

Thanks.

Comments

dawehner’s picture

Component: Miscellaneous » node data
Category: support » feature

You would have to write a custom argument handler. Set this to feature request.

merlinofchaos’s picture

'path' isn't really a piece of data on a node that you can utilized. Plus, arguments can't easily contain slashes. I'm not sure there's anyway you can do this.

gavin_o’s picture

Many thanks to both of you. I'm sure you are right that the path is not really a piece of data on the node - I was surprised it was returned by Services as a property of the node.

I have no idea where to start with a custom argument handler I'm afraid, so my solution to this for now was to use CCK to define another field on the node type select that as the argument for the view, rather than using the path. That CCK field ("id") ended up being the same as the path almost all the time, and needed manually setting on each node, but the solution works.

dawehner’s picture

Status: Active » Fixed

So this is fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.